I have upgraded our Spring Boot apps from using okta-spring-boot-starter v0.61 to v2.1.1
The microservices are now always throwing:
p.a.OAuth2AuthenticationProcessingFilter : Authentication request failed: error="invalid_token", error_description="Invalid access token: ... TOKEN OMITTED
The NEW (v2.1.1) OAuth2AuthenticationManager is wired with an an instance of org.springframework.security.oauth2.provider.token.DefaultTokenServices which has an empty hashmap and causes an exception (because OAuth2AuthenticationManager gets null back) from tokenServices.loadAuthentication(token)
The OLD (v0.61) implementation used an instance of com.okta.spring.oauth.implicit.ImplicitAudienceValidatingTokenServices
This was created automatically in the old code inside ResourceServerConfig
ImplicitAudienceValidatingTokenServices is now gone from okta-spring-boot and so is ResourceConfig. It's not clear to me how I would enable the same behavior in Okta Spring Boot Starter v2.1.1.
Any ideas on what config/properties I am missing to restore the old behavior? I don't believe Okta even supports 'remote token validation' (not sure on the exact correct technical phrase). Local validation remains fine for our purposes.