# Problem With Okta Issuer-uri With Spring Security

**URL:** <https://devforum.okta.com/t/problem-with-okta-issuer-uri-with-spring-security/25806>\
**Category:** OAuth/OIDC\
**Created:** [November 10, 2023, 4:45pm UTC](https://devforum.okta.com/t/problem-with-okta-issuer-uri-with-spring-security/25806 "2023-11-10T16:45:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjrother](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@mjrother](https://devforum.okta.com/u/mjrother)\
**Post date:** [November 10, 2023, 4:45pm UTC](https://devforum.okta.com/t/problem-with-okta-issuer-uri-with-spring-security/25806/1 "2023-11-10T16:45:43Z")

</div>

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](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](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.

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [November 14, 2023, 1:13am UTC](https://devforum.okta.com/t/problem-with-okta-issuer-uri-with-spring-security/25806/2 "2023-11-14T01:13:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 16, 2024, 12:54am UTC](https://devforum.okta.com/t/problem-with-okta-issuer-uri-with-spring-security/25806/3 "2024-02-16T00:54:31Z")

</div>


