Does anyone have an up to date example of using fo...
# ktor
f
Does anyone have an up to date example of using form auth in ktor? The docs are so sparse...
a
Please have a look at this article in the documentation.
f
In this article the server simply does
call.respond(HttpStatusCode.Unauthorized).
How do I actually authenticate the client instead of just returning 401? Where is the 'form' part of this form auth?
a
You can find the configuration for a form authentication here. Also, there is a complete sample project.
f
Aha, the sample project helps a lot, thanks! I got mixed up with all of the different endpoints I need.