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

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

问题描述

在我的工作,我需要使用资源所有者密码凭据流量和官方docummentation不支持它的项目之一:的https://msdn.microsoft.com/library/azure/aeab0a46-4da1-4300-be9c-3be418f07a5b.aspx/它只支持Authorizartion code和客户端凭证。谷歌搜索使我这个<一个href=\"https://github.com/nordvall/TokenClient/wiki/OAuth-2-Resource-Owner-Password-Credentials-grant-in-AzureAd\"相对=nofollow> 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.

<一个href=\"http://stackoverflow.com/questions/28580848/how-to-authenticate-user-with-azure-active-directory-using-oauth-2-0/28597758#28597758\">How与使用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/库/天蓝色/ dn151135.aspx

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

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