ASP.NET Core hosts an internal sign-out handler at
/signout/callback. You need to add it as a valid Logout redirect URI in Okta. See Define the signout callback for more information on defining this URI in your application settings.
Open your Okta Developer Console:
Go to Console
Select Applications, and then select your application.
Select General and click Edit.
In the Logout redirect URI section, add the Base URI of your application followed by
/signout/callback (for example,
Open the controller where you handle the sign-out process and update the
SignOut action. This time you need to also sign the user out of the Okta OIDC middleware with
Then, update your
using statements to import the following namespaces:
After you sign users out of your app and out of Okta, you can also redirect users to a specific location. Modify your
SignOut action to include the action that you want to redirect to (for example,