After performing local signout, navigate the user's browser to the OIDC logout page.
This page clears the user's Okta session, and then redirects back to the post_logout_redirect_uri
that is provided. This URI must be one of those listed in the Logout redirect URI
section of your application's 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. You can optionally follow that URI with a path (for example, http://localhost:8080/logged_out
). Also, add any URIs where your application runs in production, such as https://app.example.com/logged_out
.
Click Save.
Function-based component example:
Class-based component example: