Token introspection faling #145
-
Hi I have a config on a resource server (only api) that works, I'm tring to get some claims like preferred_username which are not part of the access token. My config is like the following:
If I uncoment the line: #spring.security.oauth2.resourceserver.opaquetoken.introspection-uri=${iamUrl}/oauth/v2/introspect Parameter 5 of method springAddonsJwtResourceServerSecurityFilterChain in com.c4_soft.springaddons.security.oidc.starter.synchronised.resourceserver.SpringAddonsOidcResourceServerBeans required a bean of type 'org.springframework.security.authentication.AuthenticationManagerResolver' that could not be found. Is this a bug or do I misconfigure? Version 7.1.5 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@giovannicandido I hadn't seen this, sorry for delay (only issues are auto assigned). This is a bug. The condition for detecting if a servlet resource server should be auto-configured with introspection or JWT decoding was broken. It is sad that the integration tests didn't detect that. For instance in webmvc-introspecting-default A new By curiosity, why are you using introspection? Isn't the additional latency a show stopper for you (compared to JWT decoding)? |
Beta Was this translation helpful? Give feedback.
-
@giovannicandido I added sample application start and shutdown around Maven integration tests. This detects such bugs as the one you found. |
Beta Was this translation helpful? Give feedback.
@giovannicandido I hadn't seen this, sorry for delay (only issues are auto assigned).
This is a bug. The condition for detecting if a servlet resource server should be auto-configured with introspection or JWT decoding was broken.
It is sad that the integration tests didn't detect that. For instance in webmvc-introspecting-default
A new
7.1.8
version was just released to publish a fix for auto-configuration. I will investigate further to also fix the tests so that it detects such issues.By curiosity, why are you using introspection? Isn't the additional latency a show stopper for you (compared to JWT decoding)?