I am looking for simple token based authentication...
# ktor
t
I am looking for simple token based authentication in Ktor server. Is there a provider for it? Basically I need to get the token from Authorization header and process it in validate function.
a
You can read about authentication providers in Ktor here.
t
I saw it, but I did not find simple provider to achieve it. It mentions
Bearer
which looks like what I need, but it only works witj JWT tokens.
k
I have been using this https://github.com/LukasForst/ktor-api-key for a little while now and it is good, but it appears it will need to be updated between ktor 2.0.0-beta-1 and 2.0.0-rc-1. I'm looking into that now.