But this is not where I want to redirect my application. I want to redirect to the Okta main login page.
I defined logout uri as http://localhost:8080/graphdb-web/ then application redirects to the my landing page which is not required.
If I change my logout uri in okta app I get 404, as my brower shows post_logout_redirect_uri=http://localhost:8080/graphdb-web/
What type of application is this? Are you using one of your SDKs? It sounds like your application needs to be configured to use the desired post_logout_redirect_uri, but we’ll need more information to tell you how to do so.
After successful logout , idealy the url which is generated in the broweser should have
the logout uri which is mentioned in the application.
but the paratmeter “post_logout_redirect_uri” is taking windows origin I supoose.
Why is such behaviour happening?
Signing out of Okta requires the app to open a browser and navigate to the end session endpoint. Okta ends the user’s session and immediately redirects the user back to your application. To do this, you must define a callback route for the sign-out process, which means that you need to allow the post sign-out URL in your Okta app integration settings. If you don’t specify a post_logout_redirect_uri , then the browser is redirected to the Okta sign-in page.
I dont want to redirect to my application , I want to redirect to Okta sign in page.
But as mentioned in the doc. If I dont assign the logout uri in my Okta App. it shoudld redirect to my okta sign in page. but instead it gives me 400. stating
Your request resulted in an error. The ‘post_logout_redirect_uri’ parameter must be a Logout redirect URI in the client app settings.
Currently the url(after logout) in my application , the pararmeter “post_logout_redirect_uri” is being picked up as windows.origin.
if the postLogoutRedirectUri isn’t set within your application, it should be defaulting to send you back to app root. If you want to send the user somewhere else after signOut, you will need to update your OktaAuth config and set your own postLogoutRedirectUri