Skip to main content
Answer

Save credentials for M2M communication on Azure

  • March 6, 2023
  • 2 replies
  • 44 views

Hi all,

A partner of ours is working on machine to machine communication and asked how to save credentials in that case. At the moment he works with a separate pool user and a proxy that has the credentials in its configuration, but he hopes to get rid of the pool user and proxy.

What are his options?

 

Best answer by Vincent Doppenberg

Hello Boudewijn,

Without knowing the entire context, a typical way to do authentication in machine to machine scenarios is OAuth 2.0 Client Credentials. This will be supported by the platform as of version 2023.2. A solution that could already work is using the OAuth 2.0 Authorization Code flow and bootstrapping it manually one time, to obtain a refresh token and then using that refresh token to continuously obtain new access tokens and refresh tokens.

Both of these options still require a client_id and client_secret to be stored somewhere though, but storing this information in some kind of configuration file on the server is usually reasonable.

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+4

Hello Boudewijn,

Without knowing the entire context, a typical way to do authentication in machine to machine scenarios is OAuth 2.0 Client Credentials. This will be supported by the platform as of version 2023.2. A solution that could already work is using the OAuth 2.0 Authorization Code flow and bootstrapping it manually one time, to obtain a refresh token and then using that refresh token to continuously obtain new access tokens and refresh tokens.

Both of these options still require a client_id and client_secret to be stored somewhere though, but storing this information in some kind of configuration file on the server is usually reasonable.


  • Author
  • March 7, 2023

Hi Vincent,

Thanks for your attention at irregular times ;-)

This sounds as if it should work, I'll take it back to our partner for discussion.