Azure Active Directory OAuth 资源所有者密码凭据流

编程入门 行业动态 更新时间:2024-10-28 09:20:20
本文介绍了Azure Active Directory OAuth 资源所有者密码凭据流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在我正在进行的一个项目中,我需要使用资源所有者密码凭据流程,而官方文档不支持它:msdn.microsoft/library/azure/aeab0a46-4da1-4300-be9c-3be418f07a5b.aspx/ 它只支持授权码和客户凭证.谷歌搜索让我找到了这个 github链接说可以完成资源所有者密码凭据,我对其进行了测试并且效果很好,但我不知道将来是否可以使用.那么,有人知道吗?

On one of the project I'm working on I need to use the Resource Owner Password Credentials Flow and the official docummentation doesn't support it : msdn.microsoft/library/azure/aeab0a46-4da1-4300-be9c-3be418f07a5b.aspx/ it only supports Authorizartion Code and Client Credentials. A google search led me to this github link that says Resource Owner Password Credentials could be done, I tested it and it worked fine but I don't know if it will be available in the future. So, does anyone knows ?

推荐答案

这是一个完全受支持的流程,将在可预见的将来.但是,出于安全和功能原因,不鼓励使用该流.请参阅以下答案以更深入地了解为什么不鼓励这样做.

It is a fully supported flow and will be for the foreseeable future. However, use of the flow is discouraged for both security and functionality reasons. Please see the following answer for a bit more depth on why it is discouraged.

如何使用 OAuth 2.0 通过 Azure Active Directory 对用户进行身份验证?

此流程的使用应主要保留用于命令行工具或根本不可能进行交互式流程的场景.

Use of this flow should be reserved primarily for command line tools or scenarios in which an interactive flow is simply not possible.

如果您不想自己实现 OAuth 2.0 交互,您可以考虑使用 Active Directory 身份验证库 (ADAL).

You might consider using the Active Directory Authentication Library (ADAL) if you don't want to implement the OAuth 2.0 interactions yourself.

msdn.microsoft/en-us/library/azure/dn151135.aspx

更多推荐

Azure Active Directory OAuth 资源所有者密码凭据流

本文发布于:2023-11-04 21:57:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1559122.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:凭据   所有者   密码   资源   Active

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!