Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Use the Outlook REST API: how to avoid getting the login page?

$
0
0

hello,

I'm following documentation at https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/use-outlook-rest-api. 

I want to get the specify account's email and calendar data in background job. Via outlook REST API(I have known the account email and password), It need get authorization before retrieve these data. I am following Azure AD v2 authentication endpoint. But it almost stop the office online login page(https://login.microsoftonline.com/common/oauth2/v2.0/authorize)  and must manually click login button to redirect my local page, and then get Access Token. We hope getting account's email and calendar data in background job. So it need get authorization automatically. How could we do it? 

BTW, I just saw on article "Microsoft identity platform and the OAuth 2.0 resource owner password credential"(https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth-ropc). Seemly it could get Access Token directly by owner password. Could we use this way to get Access Token, and then retrieve account's emails and calendars? Please advise 

I am looking forward for your response.

Thanks very much!

Mark


Viewing all articles
Browse latest Browse all 16000

Trending Articles