# Conform to OpenID logout specification

**URL:** <https://community.auth0.com/t/conform-to-openid-logout-specification/82498>\
**Category:** Product Feedback\
**Tags:** oidc-conformant, oidc, logout\
**Created:** [April 27, 2022, 4:27pm UTC](https://community.auth0.com/t/conform-to-openid-logout-specification/82498 "2022-04-27T16:27:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgustafson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bgustafson/32/36715_2.png) [@bgustafson](https://community.auth0.com/u/bgustafson)\
**Post date:** [April 27, 2022, 4:27pm UTC](https://community.auth0.com/t/conform-to-openid-logout-specification/82498/1 "2022-04-27T16:27:47Z")

</div>

The logout endpoint (/v2/logout) does not seem to conform to the OIDC specification, which says that the redirect URL should be defined in the **post\_logout\_redirect\_uri** parameter:

> **[Final: OpenID Connect
    RP-Initiated Logout 1.0](https://openid.net/specs/openid-connect-rpinitiated-1_0.html#rfc.section.2)**
>
> OpenID Connect
> RP-Initiated Logout 1.0

However, Auth0 is using a **returnTo** parameter instead:

> **[Redirect Users After Logout](https://auth0.com/docs/authenticate/login/logout/redirect-users-after-logout)**
>
> Describes how to redirect users after logout.

I tried using **post\_logout\_redirect\_uri** in my logout request despite the documentation, however it did not redirect.

This means that OIDC libraries/packages/etc can’t be used to log out of Auth0 in a user-friendly way because they are not redirected back to the application as intended.

I did some searching and know this topic is similar to these others, however they were closed without any resolution:

- [Conform to OpenID logout to use post\_logout\_redirect\_uri instead of returnTo](https://community.auth0.com/t/conform-to-openid-logout-to-use-post-logout-redirect-uri-instead-of-returnto/16233)
- [logout redirect uri](https://community.auth0.com/t/logout-redirect-uri/8169)

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 29, 2022, 10:59pm UTC](https://community.auth0.com/t/conform-to-openid-logout-specification/82498/3 "2022-04-29T22:59:43Z")

</div>

Hey there @bgustafson welcome to the community!

> [@bgustafson](#):
>
> The logout endpoint (/v2/logout) does not seem to conform to the OIDC specification, which says that the redirect URL should be defined in the **post\_logout\_redirect\_uri** parameter

Thanks for bringing this up - As of now, you are correct in that this does not conform to the OIDC spec but is instead proprietary to Auth0. We are well aware of this discrepancy and there has been significant discussion internally on how to best add this to the product, but as of now `returnTo` is the only option. I 100% understand this is not ideal and causes issues when working with 3rd party OIDC libraries/packages/SDKs etc. and hope that we can conform to this part of the spec at some point in the near future.

I unfortunately do not have a timeline as to when or if this will be implemented, but I definitely encourage you to add this as [feedback](https://community.auth0.com/c/feedback/95) here in the community - This is monitored by our team and it would be a good place to get a feel for how many developers this is affecting.

Thank you!

---

<div class="post-metadata">

**Author:** ![bgustafson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bgustafson/32/36715_2.png) [@bgustafson](https://community.auth0.com/u/bgustafson)\
**Post date:** [May 3, 2022, 4:11pm UTC](https://community.auth0.com/t/conform-to-openid-logout-specification/82498/4 "2022-05-03T16:11:39Z")

</div>

Thanks for the reply! I switched this post to be in the Feedback category thinking it would be better so that it’s not duplicated. Or, do you prefer / is it better that they be separate posts (I see this topic will be closed 15 days after last reply)?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 3, 2022, 6:08pm UTC](https://community.auth0.com/t/conform-to-openid-logout-specification/82498/5 "2022-05-03T18:08:08Z")

</div>

No problem! Perfect, thanks for doing that. I removed the timer so we’re good to go there - Hopefully this gets some traction with other community members ⬆

---

<div class="post-metadata">

**Author:** ![philip.skinner](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@philip.skinner](https://community.auth0.com/u/philip.skinner)\
**Post date:** [April 12, 2023, 8:34am UTC](https://community.auth0.com/t/conform-to-openid-logout-specification/82498/6 "2023-04-12T08:34:09Z")

</div>

Please follow the standard, the logout functionality of auth0 is sub-par.

---

<div class="post-metadata">

**Author:** ![marcus.gadbem](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@marcus.gadbem](https://community.auth0.com/u/marcus.gadbem)\
**Post date:** [April 12, 2023, 1:55pm UTC](https://community.auth0.com/t/conform-to-openid-logout-specification/82498/7 "2023-04-12T13:55:20Z")

</div>

Hey Tyf! Are there any updates on this topic?

I have reached the wall at this point and I am looking for workarounds too. Happy to hear if there are any suggestions on your side.

Thanks in advance!
