question

Imanol112-5020 avatar image
0 Votes"
Imanol112-5020 asked ryanchill answered

Is it possible to obtain OAuth2 tokens for a Gmail account using Azure as the authentication platform?

I asked this question here https://answers.microsoft.com/en-us/outlook_com/forum/oemail-oapps/is-it-possible-to-obtain-oauth2-tokens-for-a-gmail/9637269f-ea83-4c1a-a908-2a79ba9df726 but was suggested to ask it here as well.

According to this page: https://docs.microsoft.com/en-us/exchange/troubleshoot/administration/cannot-connect-mailbox-pop-imap-outlook

Outlook supports Modern authentication for only Exchange, Outlook.com, and Gmail at this time.

So, is it possible to register an app in Azure, ask for permissions like POP/IMAP and then obtain tokens so that the app can read a Gmail's account emails?

If so, please point me to the documentation where this is explained.

Thanks in advance.

azure-ad-authenticationazure-ad-app-registrationazure-ad-authentication-protocols
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered

Hi @Imanol112-5020,

The doc you're looking for is https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization. It gives you a broad overview of how to leverage the multiple providers to enable authentication and authorization. For Google in particular, see https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-provider-google on how to configure your app service for Google sign-in.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.