# Error "Grant type 'http://auth0.com/oauth/legacy/grant-type/delegation/id\_token' not allowed for the client" after saving settings

**URL:** <https://community.auth0.com/t/error-grant-type-http-auth0-com-oauth-legacy-grant-type-delegation-id-token-not-allowed-for-the-client-after-saving-settings/7182>\
**Category:** Get Help\
**Tags:** lock-10, delegation, tier1, firebase\
**Created:** [June 21, 2017, 10:09pm UTC](https://community.auth0.com/t/error-grant-type-http-auth0-com-oauth-legacy-grant-type-delegation-id-token-not-allowed-for-the-client-after-saving-settings/7182 "2017-06-21T22:09:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreev.artem](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andreev.artem/32/7041_2.png) [@andreev.artem](https://community.auth0.com/u/andreev.artem)\
**Post date:** [June 21, 2017, 10:09pm UTC](https://community.auth0.com/t/error-grant-type-http-auth0-com-oauth-legacy-grant-type-delegation-id-token-not-allowed-for-the-client-after-saving-settings/7182/1 "2017-06-21T22:09:22Z")

</div>

I had working auth workflow using Lock widget (popup, google account) and signing in with customToken to Firebase. Then I had to update settings by adding one more host to “Allowed Origins (CORS)”. Initially I was getting error “invalid grant types: client\_credentials” but when I chose “Client Type” =\> “SPA” I was able to save settings. But after that the auth workflow became broken - I’m getting error “Grant type ‘[http://auth0.com/oauth/legacy/grant-type/delegation/id\_token](http://auth0.com/oauth/legacy/grant-type/delegation/id_token)’ not allowed for the client” in the response for https://\*\*\*.auth0.com/delegation request in the Dev console.

Which changes are required now to get working signing in with customToken to Firebase?

---

<div class="post-metadata">

**Author:** ![heiker.araujo](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@heiker.araujo](https://community.auth0.com/u/heiker.araujo)\
**Post date:** [June 22, 2017, 3:31am UTC](https://community.auth0.com/t/error-grant-type-http-auth0-com-oauth-legacy-grant-type-delegation-id-token-not-allowed-for-the-client-after-saving-settings/7182/2 "2017-06-22T03:31:46Z")

</div>

Please see the following post for a similar resolved issue:

[http://community.auth0.com/questions/3944/error-grant-type-password-not-allowed-for-the-clie](http://community.auth0.com/questions/3944/error-grant-type-password-not-allowed-for-the-clie)

It includes details on why this happens and how you can work around it

---

<div class="post-metadata">

**Author:** ![andreev.artem](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andreev.artem/32/7041_2.png) [@andreev.artem](https://community.auth0.com/u/andreev.artem)\
**Post date:** [June 22, 2017, 1:44pm UTC](https://community.auth0.com/t/error-grant-type-http-auth0-com-oauth-legacy-grant-type-delegation-id-token-not-allowed-for-the-client-after-saving-settings/7182/3 "2017-06-22T13:44:23Z")

</div>

In [docs](https://auth0.com/docs/clients/client-grant-types) I noticed:

> [http://auth0.com/oauth/legacy/grant-type/delegation/id\_token](http://auth0.com/oauth/legacy/grant-type/delegation/id_token) This feature is disabled by default. If you would like this feature enabled, please contact support to discuss your use case and prevent the possibility of introducing security vulnerabilities.

and thought I can’t enable this specific grant type through the patch. But after support’s answer I’ve tried and it works atm.

---

<div class="post-metadata">

**Author:** ![frankb](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@frankb](https://community.auth0.com/u/frankb)\
**Post date:** [July 28, 2017, 12:30am UTC](https://community.auth0.com/t/error-grant-type-http-auth0-com-oauth-legacy-grant-type-delegation-id-token-not-allowed-for-the-client-after-saving-settings/7182/4 "2017-07-28T00:30:26Z")

</div>

We tried to patch our new client to work with the Firebase addon like this and it DIDN’T WORK (ADMIN is an “all-allowed” token)

```
curl -X PATCH \
 -H 'Content-Type: application/json' \
 -H "Authorization: Bearer $ADMIN" \
 https:// ****.eu.auth0.com/api/v2/clients/D*** -d\
 '{ "grant_types": "authorization_code","implicit","refresh_token", "http://auth0.com/oauth/legacy/grant-type/delegation/id_token"] }'

--> {"statusCode":400,"error":"Bad Request","message":"Invalid grant types: http://auth0.com/oauth/legacy/grant-type/delegation/id_token"}

```

---

<div class="post-metadata">

**Author:** ![frankb](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@frankb](https://community.auth0.com/u/frankb)\
**Post date:** [July 28, 2017, 12:30am UTC](https://community.auth0.com/t/error-grant-type-http-auth0-com-oauth-legacy-grant-type-delegation-id-token-not-allowed-for-the-client-after-saving-settings/7182/5 "2017-07-28T00:30:26Z")

</div>

We tried to patch our new client to work with the Firebase addon like this and it DIDN’T WORK (ADMIN is an “all-allowed” token)

```
curl -X PATCH \
 -H 'Content-Type: application/json' \
 -H "Authorization: Bearer $ADMIN" \
 https:// ****.eu.auth0.com/api/v2/clients/D*** -d\
 '{ "grant_types": "authorization_code","implicit","refresh_token", "http://auth0.com/oauth/legacy/grant-type/delegation/id_token"] }'

--> {"statusCode":400,"error":"Bad Request","message":"Invalid grant types: http://auth0.com/oauth/legacy/grant-type/delegation/id_token"}

```

---

<div class="post-metadata">

**Author:** ![craig1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/craig1/32/7219_2.png) [@craig1](https://community.auth0.com/u/craig1)\
**Post date:** [August 30, 2017, 9:16pm UTC](https://community.auth0.com/t/error-grant-type-http-auth0-com-oauth-legacy-grant-type-delegation-id-token-not-allowed-for-the-client-after-saving-settings/7182/6 "2017-08-30T21:16:45Z")

</div>

I am in the same position, I need to allow my Auth0 users delegated access to Firebase, but delegation does not possible in new Auth0 apps. It even says it clearly here, that the legacy method (still in their docs) is **disabled**. See [Application Grant Types](https://auth0.com/docs/clients/client-grant-types#secure-alternatives-to-the-legacy-grant-types)

What is the alternative to perform delegation now? Is there any documentation?!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/error-grant-type-http-auth0-com-oauth-legacy-grant-type-delegation-id-token-not-allowed-for-the-client-after-saving-settings/7182/7 "2018-03-02T05:54:50Z")

</div>


