实现azure MS图形应用程序权限 [英] Implement azure MS graph application permissions

查看:81
本文介绍了实现azure MS图形应用程序权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

任何人都可以使用MS Graph帮助我获取有关如何在Azure Active目录中实现应用程序权限的示例代码。



我已阅读并在清单中找到了必须设置为申请。

但是我无法理解如何为应用程序权限的图形生成访问令牌。我需要帮助为应用程序权限生成访问令牌



谢谢!



我的尝试:



我试图谷歌并理解和实现这个概念但没有多大用处。

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.

推荐答案

您可以使用OAuth或OpenID连接到Azure AD和身份验证用户/应用。 Graph API可用于通过REST捕获令牌,获取auth令牌 - 文档 - Microsoft Graph [ ^ ]。该链接包含有关如何生成令牌以及如何刷新令牌的一些指导。



请查看此链接以了解Azure Active Directory令牌的工作原理,了解Azure AD中的OAuth 2.0授权代码流Microsoft Docs [ ^ ]
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[^]


这篇关于实现azure MS图形应用程序权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆