-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth2StatelessJWTIntrospectionFactory cannot be used with standard JWT #445
Comments
Does this help? |
I am seeing the same issue - the link you pasted does not seem to use the stateless introspection factory, so while I have experimented with implementing similar strategies shown there I still run into the same problem when composing with the CommonStrategy as described above: |
To me it looks like a bit of bitrot here. Like that things were added in parallel and not really made to work with each other. I have not also found any integration test for this, just unit tests for |
As a temporary workaround I've tried out creating a
This "works" in the couple of very simple tests I've done, but I would love to figure out a proper solution to how to use the stateless introspection. |
I made a PR to fix this: #519 Please check it out and provide any feedback. |
I use the following strategy:
And the following list of factories:
I would assume that I could just replace
OAuth2TokenRevocationFactory
andOAuth2TokenIntrospectionFactory
withOAuth2StatelessJWTIntrospectionFactory
, but this does not seem to be really possible. I get the following error when running it:Expected behavior
It just works. And instead of introspection looking in the database, it just looks into the token.
Environment
The text was updated successfully, but these errors were encountered: