When I run the sample application with those properties I get this error when starting the server
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oauth2SecurityFilterChain' defined in class path resource [com/okta/spring/boot/oauth/OktaOAuth2AutoConfig$OAuth2SecurityFilterChainConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.SecurityFilterChain]: Factory method 'oauth2SecurityFilterChain' threw exception; nested exception is java.lang.IllegalStateException: Spring Security only supports JWTs or Opaque Tokens, not both at the same time.
I can start the server and visit localhost:8080, which then redirects me to my corporate okta. I can login, and I get re-directed to localhost:8080 with this error being displayed
[access_denied] Policy evaluation failed for this request, please check the policy configurations.
Talking to my contact in my corp auth, it sounds like within their okta settings of
API → Authorization Servers
There are no entries.
Does there need to be something here for the whole flow to work for Spring Boot?