资源所有者密码凭据 - 无效授权 - AADSTS50126:无效的用户名或密码... [英] Resource Owner Password Credential - invalid grant - AADSTS50126: Invalid username or password ...

查看:232
本文介绍了资源所有者密码凭据 - 无效授权 - AADSTS50126:无效的用户名或密码...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试使用本机应用程序和我的用户名和密码(仅用于测试)测试ROPC ...但总是回到上面的错误即使这些是我每天都使用的凭据来访问我的域名...我开始使用用户凭据来引用
到 是不同的,也许新用户必须创建或者在app上缺少某些东西侧配置设置。

I'm trying to test ROPC with a native application and my username and pasword (just for test) ... but always get back the error above even if those are credentials I'm using every day to get acces to my domain ... I start tought user credentials it refer to are different ones, maybe new user has to be created or something missing on app side configuration settings.

检查此错误的主要设置是什么?我不是在使用B2C,需要吗?同样,仅在AD Azure上配置联邦身份验证,而不是单点登录或密码... 

Which are the primary settings to check for this error ? I'm not using B2C, is that needed ? Again only federate authentication is configured on AD Azure not single sign on or passtroght ... 

谢谢。

R。

Marco。

Marco

推荐答案

您好mameli175,

Hi mameli175,

我已经研究过您的查询。我相信您收到 invalid_grant 错误代码,因为凭据不正确或客户端未同意所请求的范围。可能会出现此错误,因为范围不是
授予的。

I have researched on your query. I believe you are getting invalid_grant error code, it is coming because the credentials are incorrect or the client does not have consent for the requested scope. This error may come because scopes are not granted.

下面的屏幕截图可以帮助您在邮递员中传递正确的值:

Below screenshot may help you to pass correct values in postman:

< img alt =""src ="https://social.msdn.microsoft.com/Forums/getfile/1420750">



请确保您同意以下范围:

Please make sure you consent the scopes like below:

请关注以下文档获取ROPC流程中的访问令牌:

https://blogs.msdn.microsoft.com/emeamsgdev/2019/01/02/ropc-resource-owner-password-credentials-grant-flow/

Please follow the below documentation to get the access token in ROPC flow:
https://blogs.msdn.microsoft.com/emeamsgdev/2019/01/02/ropc-resource-owner-password-credentials-grant-flow/

有关ROPC流程的更多信息,请查看以下文档:

For more information on ROPC flow, you can check the below document:

https://docs.microsoft。 COM / EN-US /天蓝色/主动目录/开发/ V2-的OAuth -ropc#protocol-diagram

如果您对此有任何疑问,请告诉我们。要记得"标记为答案"如果这些信息对您有所帮助,那么它可以帮助寻找类似答案的社区。如果信息无效,您需要更多信息,请告知我们,我们可以继续对话。 



谢谢&NBSP;

Please let us know in case you have any further queries on this. Do remember to "mark as answer" in case this information helped you so that it helps the community who are searching for similar answers. In case the information does not help and you would like some more information , please let us know and we can continue the conversation. 

Thank you. 


这篇关于资源所有者密码凭据 - 无效授权 - AADSTS50126:无效的用户名或密码...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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