# Auth0 token flows without a client

**URL:** <https://community.auth0.com/t/auth0-token-flows-without-a-client/104873>\
**Category:** Get Help\
**Tags:** grants, management-api\
**Created:** [April 17, 2023, 2:38pm UTC](https://community.auth0.com/t/auth0-token-flows-without-a-client/104873 "2023-04-17T14:38:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![liam2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/liam2/32/46385_2.png) [@liam2](https://community.auth0.com/u/liam2)\
**Post date:** [April 17, 2023, 2:38pm UTC](https://community.auth0.com/t/auth0-token-flows-without-a-client/104873/1 "2023-04-17T14:38:48Z")

</div>

I am lost every time I read any of the documentation on receiving tokens or interacting with auth0 apis if you are not in a client using callback urls. [Call Your API Using the Authorization Code Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow)

Is there a way to do client credential grant (or user credentials) and receive a token without using a front end client? I know you can if you use username/password but this does not support our use case. Thanks!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 17, 2023, 10:21pm UTC](https://community.auth0.com/t/auth0-token-flows-without-a-client/104873/3 "2023-04-17T22:21:04Z")

</div>

Hello there @liam2 welcome to the community!

> [@liam2](#):
>
> Is there a way to do client credential grant (or user credentials) and receive a token without using a front end client? I know you can if you use username/password but this does not support our use case. Thanks!

Do you mind going into your use case in a bit more detail? This is typically covered by an [m2m flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow), but I am not positive if that’s what you are looking for. Our [architecture scenario doc](https://auth0.com/docs/get-started/architecture-scenarios/server-application-api) on this type of flow may be useful as a high level overview.

Keep us posted!

---

<div class="post-metadata">

**Author:** ![liam2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/liam2/32/46385_2.png) [@liam2](https://community.auth0.com/u/liam2)\
**Post date:** [April 18, 2023, 1:43pm UTC](https://community.auth0.com/t/auth0-token-flows-without-a-client/104873/4 "2023-04-18T13:43:15Z")

</div>

Hey thanks for your response!

So that is exactly what I am looking for as noted in the docs you sent. A client credentials grant where no human user is involved!

- For authorizing a Machine to Machine Application (a CLI, service or daemon where no user interaction is involved) Auth0 supports the Client Credentials grant (see [Client Credentials Grant](https://auth0.com/docs/get-started/architecture-scenarios/server-application-api/part-1#client-credentials-grant))

In our use case, a gateway proxy service will validate tokens. But many of our users will be other servers, who need to obtain a code/access token to make requests against this gateway proxy. Where I am confused by the client credential grant documentation is which Authorize endpoint can I request without being redirected to a client login in. As in, how can I receive a code for the /token endpoint without a client login?

Thanks for your time!  
Liam

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 29, 2023, 12:02am UTC](https://community.auth0.com/t/auth0-token-flows-without-a-client/104873/6 "2023-04-29T00:02:58Z")

</div>

Hey there @liam2 I apologize for the delayed response, but happy to help!

> [@liam2](#):
>
> Where I am confused by the client credential grant documentation is which Authorize endpoint can I request without being redirected to a client login in. As in, how can I receive a code for the /token endpoint without a client login?

The client credentials grant doesn’t require the Authorization endpoint at all, but will instead be carried out against the [/token endpoint itself](https://auth0.com/docs/api/authentication#client-credentials-flow).

---

<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:** [May 13, 2023, 12:03am UTC](https://community.auth0.com/t/auth0-token-flows-without-a-client/104873/7 "2023-05-13T00:03:24Z")

</div>

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