# Signout function not redirecting and flagging an error

**URL:** <https://devforum.okta.com/t/signout-function-not-redirecting-and-flagging-an-error/24282>\
**Category:** OAuth/OIDC\
**Tags:** angular\
**Created:** [May 17, 2023, 7:01pm UTC](https://devforum.okta.com/t/signout-function-not-redirecting-and-flagging-an-error/24282 "2023-05-17T19:01:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_mahesh](https://avatars.discourse-cdn.com/v4/letter/r/f07891/32.png) [@Rohit\_mahesh](https://devforum.okta.com/u/Rohit_mahesh)\
**Post date:** [May 17, 2023, 7:01pm UTC](https://devforum.okta.com/t/signout-function-not-redirecting-and-flagging-an-error/24282/1 "2023-05-17T19:01:14Z")

</div>

Hi,  
i am able to successfully sign in ,but unable to signout while clicking on signout(),  
its flagging an error :-  
"400

## Bad Request

Your request resulted in an error. The ‘post\_logout\_redirect\_uri’ parameter"

My configurations in okta app dashboard:-  
In signin url:-[https://sam.com/devuiapp/login/callback](https://sam.com/devuiapp/login/callback)  
signout url:-[https://sam.com/devuiapp/](https://sam.com/devuiapp/)

Kindly do the needful

Thanks,  
Rohit M

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [May 17, 2023, 8:29pm UTC](https://devforum.okta.com/t/signout-function-not-redirecting-and-flagging-an-error/24282/2 "2023-05-17T20:29:07Z")

</div>

What is your application sending as the `post_logout_redirect_uri` when it makes the /logout request? Does it match one of the **Sign-out redirect URIs** configured for your application within Okta?

If the `post_logout_redirect_uri` included in the /logout request does _not_ match one of the registered **Sign-out redirect URIs** for your application in Okta, it is expected for the request to fail and you should see an error page on Okta saying the same.

Additional causes for errors with /logout endpoint can be found in our docs: [OpenID Connect & OAuth 2.0 API | Okta Developer](https://developer.okta.com/docs/reference/api/oidc/#error-conditions)

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 15, 2024, 5:46pm UTC](https://devforum.okta.com/t/signout-function-not-redirecting-and-flagging-an-error/24282/3 "2024-02-15T17:46:32Z")

</div>

Closed on February 15, 2024, 5:46pm UTC


