# OAuth 2.0 Connecton with Grant Type Password Credentials

**URL:** <https://connective.celigo.com/t/oauth-2-0-connecton-with-grant-type-password-credentials/287>\
**Category:** Integrator.io\
**Tags:** connection, authentication\
**Created:** [November 24, 2023, 9:32pm UTC](https://connective.celigo.com/t/oauth-2-0-connecton-with-grant-type-password-credentials/287 "2023-11-24T21:32:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arturoduranmoreno](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@arturoduranmoreno](https://connective.celigo.com/u/arturoduranmoreno)\
**Post date:** [November 24, 2023, 9:32pm UTC](https://connective.celigo.com/t/oauth-2-0-connecton-with-grant-type-password-credentials/287/1 "2023-11-24T21:32:24Z")

</div>

Hi All,

We are trying to setup an OAuth 2.0 connection but according with API specs, we need a "Password Credentials" Grant Type but there is not available from the Grant Type options, Is the any option to setup de connection?

Thanks in advance.

Best Regards

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [November 24, 2023, 9:41pm UTC](https://connective.celigo.com/t/oauth-2-0-connecton-with-grant-type-password-credentials/287/2 "2023-11-24T21:41:55Z")

</div>

@arturoduranmoreno you would need to use the Oauth 2 override section of the iClient. [Here is another community post showing how to use Oauth 2 override section](https://connective.celigo.com/t/connection-to-akeneo-rest-api/390) and [here is an article on how to use it](https://docs.celigo.com/hc/en-us/articles/11933835192859#Overrides).

You're override body may be something like this:

```
{ "grant_type":"password", "client_credentials":"{{iClient.oauth2.clientId}}", "client_secret":"{{iClient.oauth2.clientSecret}}"}
```

---

<div class="post-metadata">

**Author:** ![arturoduranmoreno](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@arturoduranmoreno](https://connective.celigo.com/u/arturoduranmoreno)\
**Post date:** [December 1, 2023, 8:59pm UTC](https://connective.celigo.com/t/oauth-2-0-connecton-with-grant-type-password-credentials/287/3 "2023-12-01T20:59:21Z")

</div>

Hi @tylerlamparter I already configured the connection according with the shared post but I'm getting the next error

"The domain of request url should be present in iClient.oauth2.validDomainNames"

I configured the domain of the my request but I´m getting the same error. Do you have any ideas about this error?

Thanks in advance.

Best Regards

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [December 1, 2023, 10:32pm UTC](https://connective.celigo.com/t/oauth-2-0-connecton-with-grant-type-password-credentials/287/4 "2023-12-01T22:32:10Z")

</div>

@arturoduranmoreno can you send api docs and screenshots of your setup?

---

<div class="post-metadata">

**Author:** ![arturoduranmoreno](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@arturoduranmoreno](https://connective.celigo.com/u/arturoduranmoreno)\
**Post date:** [December 4, 2023, 6:51pm UTC](https://connective.celigo.com/t/oauth-2-0-connecton-with-grant-type-password-credentials/287/5 "2023-12-04T18:51:43Z")

</div>

Thanks @tylerlamparter, I found the issue, the error was because I was using subdomain & domain buy only the domain is required and valid. I did some tests until I got it.

Thanks again for your time and support.

Best regards

---

<div class="post-metadata">

**Author:** ![ommishra](https://avatars.discourse-cdn.com/v4/letter/o/f08c70/32.png) [@ommishra](https://connective.celigo.com/u/ommishra)\
**Post date:** [January 19, 2024, 7:11am UTC](https://connective.celigo.com/t/oauth-2-0-connecton-with-grant-type-password-credentials/287/6 "2024-01-19T07:11:12Z")

</div>

Hi Arturo,

We have just released password credentials grant for OAuth 2.0 authentication type.

Let us know if you have any issues while configuring your connection.

Thanks,  
Om
