Join Slack
Powered by
How does authentication work with Ktor? I've set u...
# ktor
s
snowe
01/27/2020, 9:26 PM
How does authentication work with Ktor? I've set up oauth, but whenever I navigate to a protected route (protected with
authenticate {}
, it doesn't redirect me to the login page. I can't find any resources that indicate how you're supposed to accomplish this though.
h
hdarritchon
01/28/2020, 8:51 AM
did you have a look at the documentation (
https://ktor.io/servers/features/authentication.html
) ?
s
snowe
01/29/2020, 5:50 PM
yes. and looked at many examples. I finally found a solution in someone else's repo, as the documentation did not explain at all how to accomplish the redirect.
4
Views
Open in Slack
Previous
Next