
6o3cz (6o3cz) asked a question.
I am attempting to use my organization’s org level auth server to validate tokens in my Spring Boot backend. When I'm setting the okta.oauth2.issuer in my application.properties to https://{company}.oktapreview.com/oauth2, the application fails to start up with the error: Unable to resolve Configuration with the provided Issuer of “https://{company}.oktapreview.com/oauth2”.
Please refer the below error.
ERROR [org.springframework.boot.SpringApplication] (ServerService Thread Pool -- 136) Application run failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtDecoder' defined in class path resource [/config/OktaConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.jwt.JwtDecoder]: Factory method 'jwtDecoder' threw exception; nested exception is java.lang.IllegalArgumentException: Unable to resolve the Configuration with the provided Issuer of "https://{company}.oktapreview.com/oauth2".
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.jwt.JwtDecoder]: Factory method 'jwtDecoder' threw exception; nested exception is java.lang.IllegalArgumentException: Unable to resolve the Configuration with the provided Issuer of "https://{company}.oktapreview.com/oauth2"

Hi @6o3cz (6o3cz) , Thank you for reaching out to the Okta Community!
There are a few similar posts out there.
https://devforum.okta.com/t/integrating-okta-spring-boot-re-directs-me-to-a-404/21624
https://devforum.okta.com/t/unable-to-resolve-configuration-with-the-provided-issuer-of-oauth2-default/10837
https://devforum.okta.com/t/okta-spring-boot-starter-unable-to-resolve-configuration-with-provided-issuer-of/13250
My advice would be to reach out to the devforum.okta.com to take advantage of their expertise.
While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products.
Hope you have a great weekend!
--------------------------------
The October issue of the Okta Community is here and packed with tips on certification, how to earn badges, and new releases. Let us help you stay connected.