Hi I am using the okta-mobile-kotlin
sdk. What are some reasons why I might get getting OidcEndpointsNotAvailableException
? When pasting the discovery url in the web browser, it returns everything just fine.
If you check out the repo for this library, you can review the code that throws the error.
This seems to imply there’s a configuration issue, likely related to the issuer you provided.
What value have you provided for that and, if it includes /oauth2/default
on the end, can you ensure that you are able to use the “Default” Custom Authorization Server in your org?
Hi thanks for the reply. The issuer is in the format of https://blah.com/oauth2/aus9o8wzkhckw9TLa0h7z
. Yes I am able to use the default auth server by using a url in this format https://blah.com/oauth2/default/.well-known/openid-configuration
.
Oh, its a completely separate custom AS then.
Just to be sure, does https://blah.com/oauth2/aus9o8wzkhckw9TLa0h7z/.well-known/openid-configuration
resolve for you as well (since that would be the well-known endpoint for the custom server ID you’ve configured for this SDK)?
Hi thanks for the reply, yes that url resolves just fine as well. The endpoints fetched by both formats below are exactly the same.
https://blah.com/oauth2/default/.well-known/openid-configuration
https://blah.com/oauth2/aus9o8wzkhckw9TLa0h7z/.well-known/openid-configuration
Hmm… Is your device/emulator perhaps blocking this request out to Okta to get the OIDC endpoints?