如何通过Azure AD运行第三方API?
我正在寻找一种通过Azure AD运行第三方的OAuth2(授权代码流)API的方法,因为我真的很喜欢.NET中的MSAL库,并且不想重新发明轮子。
有人知道这是否可能吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我正在寻找一种通过Azure AD运行第三方的OAuth2(授权代码流)API的方法,因为我真的很喜欢.NET中的MSAL库,并且不想重新发明轮子。
有人知道这是否可能吗?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
Azure Active Directory(Azure AD)支持所有OAUTH 2.0流。
使用OAuth1。转到Azure Active Directory,单击应用程序注册,然后单击新注册。在此处输入图像描述
然后单击应用程序注册,然后单击新创建应用程序
>
单击应用程序ID URI并设置此
复制此应用程序ID
创建角色
单击证书&秘密,然后单击新客户秘密,然后输入描述和到期月,然后单击添加
src =“ https://i.sstatic.net/qmk6w.png” alt =“在此处输入图像描述”>
基础在此处输入链接描述
16 :输入链接说明
基础 oauth 2.0 通过Microsoft文档使用Azure Active Directory身份验证
Azure Active Directory (Azure AD) supports all OAuth 2.0 flows.
Steps to use OAuth 1. Go to Azure Active Directory, the click on App registrations and then click New Registration. enter image description here
Then click on App registration and click new create applications
Click Application ID URi and set this
Copy this Application Id
Create role
After above steps
Click certificates & secrets and then click on new client secret and then enter description and expires month and click add
Fundamental enter link description here
16: enter link description here
Fundamental OAuth 2.0 Authentication with Azure Active Directory by Microsoft Documents