Logout fails with 400 bad request

I’m getting the following error when trying to logout a user.

Identity Provider:

Error Code: illegal_post_logout_redirect_uri

Description: The ‘post_logout_redirect_uri’ parameter must be an absolute URI that is whitelisted in the client app settings.

I’ve entered values in the general setting for Logout redirect URI (all sorts).

Please help.

When you see this error, the redirect URI it’s trying to go to will be in your address bar as a parameter. Make sure the value of that parameter is listed in your logout redirect URI settings in your Okta app.

1 Like

That’s worked

Thanks a lot

Hi,

I have set the value correctly in my App

Based on what is in the URL when logging out:

https://dev-4003858.okta.com/oauth2/default/v1/logout?post_logout_redirect_uri=https%3A%2F%2Fsitecore-demo-rg-170970-single.azurewebsites.net%2Fidentity%2Fpostexternallogout%3Fnonce%3Dc6671394839644a8acbb6e928743ee4e%26ReturnUrl%3Dhttps%3a%2f%2fsitecore-demo-rg-170970-single.azurewebsites.net%2fidentity%2flogin%2fshell%2fSitecoreIdentityServer&id_token_hint=eyJraWQiOiJxVjdIUkpidHkwRkhkcDVYaXcwdlJhRTJoY1VEVkEwSEZMei1EODFhTFdrIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwMHUxZGR6ZXJXNHlVdUVoZjVkNiIsInZlciI6MSwiaXNzIjoiaHR0cHM6Ly9kZXYtNDAwMzg1OC5va3RhLmNvbS9vYXV0aDIvZGVmYXVsdCIsImF1ZCI6IjBvYTFmMGtxNWxzMUNzcU5DNWQ2IiwiaWF0IjoxNjA2NzA2NDg0LCJleHAiOjE2MDY3MTAwODQsImp0aSI6IklELnhGR1NycHdna0JrSTJlSVZocExISGZsOVZJUHh1cXZRUXRSc2Jaek1KbTQiLCJhbXIiOlsicHdkIl0sImlkcCI6IjAwbzFkZHphejIzV2RuVXRDNWQ2Iiwibm9uY2UiOiI2Mzc0MjMwMzI4Mzg0MzQyNTguT0RZMk9UbGlZMlV0T1RRMVlTMDBaREF3TFdJME5qRXROalUxT0dJd056UTFPVGN5WVRka1pEWmhNakl0Tm1RMVpTMDBZbUppTFRsaU9UZ3RNbU14TWpRd01qY3laalJqIiwiYXV0aF90aW1lIjoxNjA2Njk2NzY0LCJhdF9oYXNoIjoid2dPWUt1VTdmdTZ5ZUdETTJ2SVduZyIsImNfaGFzaCI6IjIxWUlqMHhKbzFvTExiRnRwc1F2RWcifQ.ceS5Q7BQEH6WCiyjhS_ZJ-DCCyIx4y1rasTeij-o0b3RvqDowVhMS7PAxUr45fGp3PtpHRKgjogp9d-g6x2ANbr3ZkSvM48rUCJurPr9NXJlT822NsoL1NWCB9ZJaCeoAz4-CmP_zlJkRtPu1oHqBVDR2mHANmmDC3koj-iPrgOw-cBruMTedBoXkjpzOJ58-sgH3qE2i5vCTj0IZnC3IpfF8QC0NNeM0Pa2XeJ1LtspvsILmSBL8UwwHr-LYf72ci8Iw46gXU5BTeGi7tTZN4S8JXoDVgIUY1GIEHs9UiQzHwMy1sAY2-XHlYdm8eaUBz8K7I77X76Crhb0NMG9eg&x-client-SKU=ID_NET461&x-client-ver=5.3.0.0

But I am still having the same issue. Please help if you can.

Thank you.

Please don’t post the same thing in multiple threads. It just creates more work for us. I already suggested an answer in another post: Logout 400 Bad Request (Logout URI already defined)

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.