How does authentication work with Ktor? I've set u...
# ktor
s
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
did you have a look at the documentation (https://ktor.io/servers/features/authentication.html) ?
s
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.