# Wrong RelayState with Auth0 as IDP

**URL:** <https://community.auth0.com/t/wrong-relaystate-with-auth0-as-idp/39526>\
**Category:** Get Help\
**Created:** [March 17, 2020, 1:22pm UTC](https://community.auth0.com/t/wrong-relaystate-with-auth0-as-idp/39526 "2020-03-17T13:22:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manfredweiss](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/manfredweiss/32/16987_2.png) [@manfredweiss](https://community.auth0.com/u/manfredweiss)\
**Post date:** [March 17, 2020, 1:22pm UTC](https://community.auth0.com/t/wrong-relaystate-with-auth0-as-idp/39526/1 "2020-03-17T13:22:41Z")

</div>

I have the same issue as described here:

> [@Wrong RelayState parameter received in the](http://community.auth0.com/t/wrong-relaystate-parameter-received-in-the/10484):
>
> Hello, I’m developing a SAML auth on top of Laravel 5. The authentication process works just fine. However, I have a problem with the RelayState param. When I start the SAML request, I add a RelayState param (ex: &RelayState=http%3A%2F%2Fmysite.local%3A8080%2Fmember). This param appears into the Auth0 login page URL. But after authentication, when getting redirected to my app, the RelayState param becomes something like “0RkkkmCwom9M\_14p6xvj28JDT3\_t7l0i”. There is probably something I don’t u…

but the topic has been closed without any comments.

I have a SP and I want to use Auth0 as an IDP. The IDP is required to return the RelayState unmodified to the SP. See [http://docs.oasis-open.org](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0-cd-02.html#5.1.2.SP-Initiated%20SSO:%20%20Redirect/POST%20Bindings%7Coutline):

> If the IdP received a RelayState value from the SP, it must return it unmodified to the SP in a hidden form control named RelayState.

Is there a way to configure that?  
If not this is a major bug and prevents us from using Auth0.

BR

---

<div class="post-metadata">

**Author:** ![cedric.alcisiadi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cedric.alcisiadi/32/20545_2.png) [@cedric.alcisiadi](https://community.auth0.com/u/cedric.alcisiadi)\
**Post date:** [April 16, 2020, 4:40pm UTC](https://community.auth0.com/t/wrong-relaystate-with-auth0-as-idp/39526/2 "2020-04-16T16:40:55Z")

</div>

I had the very same problem. The workaround is to disable google-auth in connections and add some users in username - password database to do your tests. It’s still an issue which should be fixed though.

---

<div class="post-metadata">

**Author:** ![bernd.eckstein](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bernd.eckstein/32/13314_2.png) [@bernd.eckstein](https://community.auth0.com/u/bernd.eckstein)\
**Post date:** [October 15, 2020, 8:50am UTC](https://community.auth0.com/t/wrong-relaystate-with-auth0-as-idp/39526/3 "2020-10-15T08:50:54Z")

</div>

The problem is still there, when logging in via Google. However, I did not have to disable google-auth to login successfully with a user from the database.
