Mvc Core Example Getting 400 Bad Request on Logout

I am trying to become familiar with Okta authentication with .net Core. Using Sample Application okta-aspnetcore-mvc-example, I have the login working and have worked through most issues just with trial and error and reading through the help here. However, i am stuck on an issue with Logout. I have not made any modifications to the logout url. MY base uri is http://localhost:8080. I have my route setup as /Account/PostLogout. I have registered http://localhost:8080/Account/Logout the logout URL in Okta and set this up in my configuration accordingly. I have also white listed http://localhost:8080.
When i attempt to logout, I recieve the following:

400 Bad Request
xxxxxxx-dev-415995 - Bad Request

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.

What am I doing wrong.

1 Like

Hi @erickreger

Can you please send us an email to to have a Developer Support Engineer assist you with this issue?

Has this been resolved by OKTA by any chance? I have same issue. with ASP.NET sample app, and weirdly enough it was working until I’ve updated web server port and OKTA accordingly.

Have you also added the new domain:port to Trusted Origins to allow for redirects?