You can use the oAuth module from the appstore and adapt it for Azure with JSON Web tokens
I can very much recommend using the Microsoft Graph connector.
It let's you do exactly what you're requesting and has good documentation.