-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
JWT authorization #93
Comments
The basic ktor implementation is not strongly typed and this lib requires strongly typed routes due to the init time analysis of the routes. You need to implement the auth handler class like in the link, there is no way around it and i don't know how to make it clearer than in link. |
We've managed to get JWT authentication working. I don't really have time to clean it up right now, so this will contain a lot of references to our system, but in case it helps: First, this function is registered with Ktor:
Then this code is basically what we needed:
|
I forgot one thing - in addition to the above, we also needed this workaround: #98 |
Any plans to put a generic JWTAuthProvider into this library? Help needed? |
If you want to do a PR i will gladly accept it. |
If I find a good way to make sigmanils example generic, I'll make a PR. |
@Wicpar I created a new provider as you mention, but how can i show in swagger-ui? Here is my apiRouting:
|
Good afternoon, please help me implement JWT authorization. Old authorization doesn't work for apiRouting.
An implementation that works in Route
And the implementation, unfortunately, which is written in link is not clear to me. Please tell me how to implement ?
The text was updated successfully, but these errors were encountered: