
hzl81 (hzl81) asked a question.
Are there any reference documentation on how to access Office 365 services via Microsoft Graph REST API.
I am trying to work out how to use Okta instead of Azure AD for authentication to the MS Graph API.
https://docs.microsoft.com/en-us/graph/auth-v2-service
thanks!

Microsoft Graph API is federated with Azure AD, which is why it will trust only the tokens which are issued by Azure AD. The only way I can think of achieving this requirement is by federating OKTA with Azure AD. That way, after the user is authenticated via OKTA, token will be sent to Azure AD; Azure AD can then validate the token and issue a corresponding token to be used by Microsoft Graph API.
Read more:
https://help.okta.com/en/prod/Content/Topics/Provisioning/azure/azure-integrate-main.htm
Reference - https://docs.microsoft.com/en-us/answers/questions/315794/use-okta-acces-token-for-microsoft-graph-apis-with.html
@2gfue (2gfue)
Thanks for the quick reply.
We are trying to leverage MS Graph APIs in automated workflows, there is no user interaction.
For this access MS uses Oauth client credentials grant flow. https://docs.microsoft.com/en-us/graph/auth-v2-service
I came across those links you posted but we dont use Azure AD. For example legacy Sharepoint API does not require Azure AD, it leverages ACS (Azure Access Control Service) for oauth.