Join Slack
If I get a call with destination <http://127.0.0.1:8888/login/callback#access_token=xxz> - how do I ...
# ktor
m
mantono
01/18/2020, 5:30 PM
If I get a call with destination
http://127.0.0.1:8888/login/callback#access_token=xxz
- how do I read
access_token
in ktor? I cannot seem to find a function that does it for me 🤔 At least not on
call.request
....
v
voben
01/18/2020, 11:31 PM
Usually your access token is in your header, and you can pull them out of your requests. See
https://ktor.io/servers/calls/requests.html
m
mantono
01/18/2020, 11:40 PM
That was not the case here (yet). The problem was that I was requesting the wrong response type in Auth0/OAuth2.
mantono
01/18/2020, 11:41 PM
This explains what I did wrong
https://community.auth0.com/t/the-redirect-response-does-not-send-the-hash-fragment-tokens-to-the-server-side/6180
mantono
01/18/2020, 11:42 PM
Thanks anyway 🙂
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by