Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello ,
Can any one help me with sample code on how to implement application permission in Azure Active directory using MS Graph.

I have read and found in manifest approles has to be set to application .
However I am not able to understand how the access token is generated for graph for application permissions.I need help with generating access token for application permission

Thank You!

What I have tried:

I am trying to google and understand and implement the concept but not of much use.
Posted
Updated 1-Aug-18 19:55pm

1 solution

You can use either OAuth or OpenID to connect to Azure AD and authentication users/apps. Graph API can be used to capture the tokens via REST, Get auth tokens - Documentation - Microsoft Graph[^]. The link contains some guidance on how to generate tokens, and how to refresh them as well.

Please check this link to understand how Azure Active Directory tokens work, Understand the OAuth 2.0 authorization code flow in Azure AD | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900