# Hidden grant types and config management

**URL:** <https://community.auth0.com/t/hidden-grant-types-and-config-management/96392>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [December 14, 2022, 1:04am UTC](https://community.auth0.com/t/hidden-grant-types-and-config-management/96392 "2022-12-14T01:04:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmcgowan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cmcgowan/32/31039_2.png) [@cmcgowan](https://community.auth0.com/u/cmcgowan)\
**Post date:** [December 14, 2022, 1:04am UTC](https://community.auth0.com/t/hidden-grant-types-and-config-management/96392/1 "2022-12-14T01:04:41Z")

</div>

My team has been experimenting with the Terraform provider. We recently ran into an issue regarding a missing grant type.

By dumping out our tenant config with the a0deploy tool, we saw that there was a seemingly hidden value `grant_types: - http://auth0.com/oauth/grant-type/password-realm`.

When checking the Application in the Tenant Dashboard, there is no option for that particular Grant Type in the Advanced Settings.

Since this grant type is hidden from the UI, should we actually be specifying it in our Terraform or a0deploy configuration?  
If so, are there any other hidden grant types we may need to know about?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 14, 2022, 4:06pm UTC](https://community.auth0.com/t/hidden-grant-types-and-config-management/96392/3 "2022-12-14T16:06:48Z")

</div>

Hi @cmcgowan,

`password-realm` is an extension grant of the [Resource Owner Password Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow).

You can find more info on it here:

> **[Call Your API Using Resource Owner Password Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-resource-owner-password-flow#configure-realm-support)**
>
> Learn how to call your own API from highly-trusted applications using the Resource Owner Password Flow.

Does that help?

---

<div class="post-metadata">

**Author:** ![cmcgowan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cmcgowan/32/31039_2.png) [@cmcgowan](https://community.auth0.com/u/cmcgowan)\
**Post date:** [December 15, 2022, 10:58pm UTC](https://community.auth0.com/t/hidden-grant-types-and-config-management/96392/4 "2022-12-15T22:58:51Z")

</div>

Hi @dan.woda,

I appreciate the link. I had read that documentation, but it does not quite help. Actually what I am asking about is specifically what is **not** covered in that doc.

From that doc, the _Configure realm support_ section only mentions how you must specify the HTTP request params. Meanwhile, in the _Prerequisites_ section it says to “Make sure your Application’s **Grant Types** include **Password**.”

Based on that info, I would believe that it is sufficient to set the `grant_types: password` config value in my tenant then send the `--data grant_type=http://auth0.com/oauth/grant-type/password-realm` and `--data realm=my-connection` request params in my API call.

But that did not work for us. We encounters a “missing grant type” error after doing that.

We were able to solve this by setting our `grant_types` tenant config to include both `password` and `http://auth0.com/oauth/grant-type/password-realm` as values.

However, I am hesitant to take our fix to production when it relies on setting an undocumented config value on the tenant. This value is not mentioned in the doc, nor available to set using the Dashboard UI. It feels like we may be doing the wrong thing here, like this value may be intentionally hidden and we should not be messing with it.

Can you provide us some clarity here?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 16, 2022, 3:29pm UTC](https://community.auth0.com/t/hidden-grant-types-and-config-management/96392/5 "2022-12-16T15:29:52Z")

</div>

The password-realm grant type is a supported grant type, and you are free to use it. It is mentioned in a bit more detail [here](https://auth0.com/docs/get-started/applications/application-grant-types#auth0-extension-grants), although not as much as the more common grant types.

As for the _why_, I’m not sure exactly. It may be because it is a fairly niche grant that isn’t as common as others, or because we generally discourage the use of the ROPG/Password flow entirely due to the added risks.

---

<div class="post-metadata">

**Author:** ![cmcgowan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cmcgowan/32/31039_2.png) [@cmcgowan](https://community.auth0.com/u/cmcgowan)\
**Post date:** [December 16, 2022, 4:04pm UTC](https://community.auth0.com/t/hidden-grant-types-and-config-management/96392/6 "2022-12-16T16:04:17Z")

</div>

Thanks Dan! That link is basically what I was looking for, I had not found that one.  
It also answers my other question, as it seems to provide a full accounting of the supported grant type options.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 16, 2022, 4:25pm UTC](https://community.auth0.com/t/hidden-grant-types-and-config-management/96392/7 "2022-12-16T16:25:34Z")

</div>

Perfect! Let us know if you have any other questions.

---

<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:** [December 30, 2022, 4:26pm UTC](https://community.auth0.com/t/hidden-grant-types-and-config-management/96392/8 "2022-12-30T16:26:15Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
