-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Allow autoconfiguration without any JWT #45045
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
Comments
Looking at Beyond that, it's hard to say what we could do with some extra conditions without knowing more about your situation. Could you please provide some more details about your app, its configuration properties, and its dependencies? The ideal would be a minimal sample and details of what you would and would not like it to auto-configure. |
For example, a dependency of You only need
Unfortunately, I don't think you can actually write conditions for any of that. Spring Security configuration will use beans by default, but you can also directly pass objects that aren't beans, triggering the need for other beans. Because Spring Boot ensures the Note also that the autoconfigured Theoretically it should be also possible to add exclusions for |
Yeah, I don't think we could write conditions for that either.
We could get |
I'm using opaque tokens, not JWT, so I have no need for any of the related beans or dependencies in my resource or authorization servers.
However,
OAuth2AuthorizationServerJwtAutoConfiguration
insists on declaring aJWKSource
bean, which triggers the spring security configurations to set up more JWK-related stuff.I also tried explictly excluding that auto-configuration, but the main one also depends on spring-jose classes via
OAuth2AuthorizationServerPropertiesMapper
:So I could manually disable the autoconfiguration and keep the dependencies, but I was wondering if you could make it a little more decoupled with some extra conditions somewhere?
The text was updated successfully, but these errors were encountered: