Login Via POST
look at your network tab when you click the join button, you'll see the POST with the data it sends, the response has a
Set-Cookie
header17 Replies
So @kakaroto I've found a POST to the /join endpoint and tested that I can get the same parameters back. I tested via manually sending POST from my browser but it didn't take me into the game world. Am I missing something? Thanks for all the help btw!
@ethck gave LeaguePointsβ’ to @kakaroto (#12 β’ 133)
The POST wouldn't take you into the world, it would just authenticate you, I think the response also has a
Location:
header for where you'd be redirected (/game
basically)
it's not very complicated.. as long as you know the user/pass to login with π
And that's the complicated part, especially since they're hashed now in 0.8.7+So in the response I see a
redirect: "/game"
but no Location header.for integration with something else, I'm not sure how that would work though π¬
I can figure that part out (eventually)
But that won't get far if I can't get into foundry without manually clicking join π€£
humm, yeah, no location in the response π€·ββοΈ
So do I just get the game page and attach the cookie?
1sec I'll open vscode and check
Thanks!
yeah, I manually redirect it
the
/join
handler :
Thanks so much! This will be the first step, but it was likely the primary blocker lol
(Pinging just to give you points) @kakaroto
@ethck gave LeaguePointsβ’ to @kakaroto (#11 β’ 134)
Points! π
no problem, good luck!
Thanks, if it goes well there will be more than a few integrations lol (I've got LDAP in my stack... so... let the nightmares begin)
π±
yeah... that sounds fun, lol
pretty much