Azure Active Directory OAuth 资源所有者密码凭据流 [英] Azure Active Directory OAuth Resource Owner Password Credentials Flow

查看:25
本文介绍了Azure Active Directory OAuth 资源所有者密码凭据流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我正在进行的一个项目中,我需要使用资源所有者密码凭据流程,而官方文档不支持它:https://msdn.microsoft.com/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 : https://msdn.microsoft.com/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.

https://msdn.microsoft.com/en-us/library/azure/dn151135.aspx

这篇关于Azure Active Directory OAuth 资源所有者密码凭据流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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