How to redirect unauthenticated users to the Okta agentless Dsso page

Hello everyone,

I am in the middle of deploying our Web Application to our client with Otka sign sign on. The sign in process works as intended, the problem is when a user does not have access permissions in Okta to our application, Okta returns a null token. Chrome then takes this and redirects the browser to IIS


All other Okta enabled apps with the client redirect to a standard Okta error page as below for Proofpoint Security Awareness Training and is the same for Microsoft Office 365 and several other web applications. What do I need to do to have our application respond with the same Okta error page?

Hi Daniel! This error page is a selectable option in SAML and SWA apps under the General tab:

Unfortunately this is not currently an option in Okta OIDC applications. Since Proofpoint and Office 365 are integrated with the aforementioned SSO solutions - that’s why you see these error pages for them.

I hope this answers your question!

Is their a ways to set context.ProtocolMessage.ErrorUri when using OIDC or redirect to the URL responsible for the global settings error page.