# M2M Authentication from one to multiple services

**URL:** <https://community.auth0.com/t/m2m-authentication-from-one-to-multiple-services/114340>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [August 23, 2023, 2:37pm UTC](https://community.auth0.com/t/m2m-authentication-from-one-to-multiple-services/114340 "2023-08-23T14:37:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnthonyDaSilva](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anthonydasilva/32/33385_2.png) [@AnthonyDaSilva](https://community.auth0.com/u/AnthonyDaSilva)\
**Post date:** [August 23, 2023, 2:37pm UTC](https://community.auth0.com/t/m2m-authentication-from-one-to-multiple-services/114340/1 "2023-08-23T14:37:05Z")

</div>

We have a monitoring service that will be installed on several of our client’s servers.  
We will have a dashboard application which needs to retrieve data from all the monitoring services.

The user will be authenticated on the dashboard app using username/password; no problem.  
but the dashboard itself needs to be authenticated with an M2M token to call the different monitoring services.

What is the best practice to do this?

---

<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:** [August 24, 2023, 12:07am UTC](https://community.auth0.com/t/m2m-authentication-from-one-to-multiple-services/114340/3 "2023-08-24T00:07:42Z")

</div>

Hey there @AnthonyDaSilva!

> [@AnthonyDaSilva](#):
>
> The user will be authenticated on the dashboard app using username/password; no problem.  
> but the dashboard itself needs to be authenticated with an M2M token to call the different monitoring services.
> 
> What is the best practice to do this?

This does sound like an ideal use for [M2M authorization](https://auth0.com/blog/using-m2m-authorization/) - The way I see it is you could have 1 M2M application in Auth0 authorized for 3 different APIs (1 per service) [registered in Auth0](https://auth0.com/docs/get-started/auth0-overview/set-up-apis).

---

<div class="post-metadata">

**Author:** ![AnthonyDaSilva](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anthonydasilva/32/33385_2.png) [@AnthonyDaSilva](https://community.auth0.com/u/AnthonyDaSilva)\
**Post date:** [August 24, 2023, 6:34am UTC](https://community.auth0.com/t/m2m-authentication-from-one-to-multiple-services/114340/4 "2023-08-24T06:34:30Z")

</div>

Thanks for your quick response.  
This is exactly how we did it.

Thank you ^^

---

<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:** [August 25, 2023, 11:24pm UTC](https://community.auth0.com/t/m2m-authentication-from-one-to-multiple-services/114340/5 "2023-08-25T23:24:21Z")

</div>

Awesome! Thanks for confirming with the community 🙂

---

<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:** [September 8, 2023, 11:25pm UTC](https://community.auth0.com/t/m2m-authentication-from-one-to-multiple-services/114340/6 "2023-09-08T23:25:08Z")

</div>

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