You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I would like for routes within the apiRouting block to be able to make use of that authentication provider. For normal kotlin routes I can just use the authenticate block but that does not seem to exist in apiRouting. Is this use-case supported or not?
The text was updated successfully, but these errors were encountered:
no convenient implementation exists.
you need to implement it yourself by implementing AuthProvider<PrincipalObject>
and creating a route selector that registers it:
the problem was that the oauth system in ktor is for clients only and not resource servers.
i have implemented an oauth server framework, and will release it publicly once it is stable and maintainable.
Feel free to do a pull request if you create a proper implementation for convenient JWT handling
So, hopefully this will be the last one. In our application we have
and I would like for routes within the
apiRouting
block to be able to make use of that authentication provider. For normal kotlin routes I can just use theauthenticate
block but that does not seem to exist inapiRouting
. Is this use-case supported or not?The text was updated successfully, but these errors were encountered: