I develop Open ID Connect Asp.Net Web Application with Okta.AspNet NuGet package. I created a developer account at https://developer.okta.com/signup/ and got the metadata URL as https://{my-sub-domain}.okta.com/oauth2/default/.well-known/openid-configuration. I setup the required fields for the application ( ClientId, ClientSecret, OktaDomain, RedirectUri, PostLogoutRedirectUri,Scope). Everything works fine in my developer environment.
When deployed on production, my customer sent me the required fields ( ClientId, ClientSecret, OktaDomain, RedirectUri, PostLogoutRedirectUri,Scope). The difference is the metadata URL in format https://{client-domain}.oktapreview.com/.well-known/openid-configuration. The application failed with the error " Unable to retrieve document from: ‘https://{client-domain}.oktapreview.com/oauth2/default/.well-known/openid-configuration’."
So I have these questions:
- How do I create an account with *.oktapreview.com?
- Why my customer metadata URL differs from my metadata URL. (does not contain /oauth2/default) ?