Problem With Okta Issuer-uri With Spring Security

I have just created a free developer account. My goal is to use it to verify the connecting our Spring Boot web app to Okta for authentication. I created an application and now I am trying to connect the Spring Security to it. I am specifying the issuer-uri, client-id and client secet in my properties file. The issuer-uri has the form https://dev-xxxx…us.auth0.com/oauth2/default and I see the error upon startup

java.lang.IllegalArgumentException: Unable to resolve Configuration with the provided Issuer of “https://dev-xxxx.us.auth0.com/oauth2/default”. I try that url in a browser and I see not found.

What an I missing with my configuration? This approach has worked fine for me with azuread.

Hello,

Is your tenant a Okta tenant or auth0 tenant.

In Okta the discovery URL for the default custom authorization server would be,
https://{YOUR_ORG}.okta.com/oauth2/default/.well-known/openid-configuration

1 Like