# Password auth for machine-to-machine application

**URL:** <https://community.auth0.com/t/password-auth-for-machine-to-machine-application/40900>\
**Category:** Get Help\
**Created:** [April 12, 2020, 3:39am UTC](https://community.auth0.com/t/password-auth-for-machine-to-machine-application/40900 "2020-04-12T03:39:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregsdennis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gregsdennis/32/20440_2.png) [@gregsdennis](https://community.auth0.com/u/gregsdennis)\
**Post date:** [April 12, 2020, 3:39am UTC](https://community.auth0.com/t/password-auth-for-machine-to-machine-application/40900/1 "2020-04-12T03:39:30Z")

</div>

I’ve created a web API that I’d like people to gain access to by using the password grant. I have a machine-to-machine application and a couple users set up in my dashboard. Everything works fine. I can get a JWT token using a client like Insomnia or Postman.

The only issue I have is that the request requires the client secret for my application. This means that my users won’t be able to request tokens because I can’t (shouldn’t) share the secret.

Looking on the [OAuth 2.0 site](https://www.oauth.com/oauth2-servers/access-tokens/password-grant/), it states that the client secret is required _if one was issued_.

Is there a way to not require the secret be provided? Alternatively, is there a way to create an application that isn’t issued a secret (i.e. client credentials grant would never work)?

---

<div class="post-metadata">

**Author:** ![gregsdennis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gregsdennis/32/20440_2.png) [@gregsdennis](https://community.auth0.com/u/gregsdennis)\
**Post date:** [April 12, 2020, 3:50am UTC](https://community.auth0.com/t/password-auth-for-machine-to-machine-application/40900/2 "2020-04-12T03:50:06Z")

</div>

Found it [here](https://auth0.com/docs/api-auth/tutorials/password-grant) under the explanation for `client_secret`: Set **Token Endpoint Authentication Method** to _None_.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 23, 2020, 12:18pm UTC](https://community.auth0.com/t/password-auth-for-machine-to-machine-application/40900/3 "2020-04-23T12:18:46Z")

</div>

Glad you have it working and thanks for sharing the solution with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 23, 2020, 12:18pm UTC](https://community.auth0.com/t/password-auth-for-machine-to-machine-application/40900/4 "2020-04-23T12:18:49Z")

</div>


