来自Azure AD的令牌不包含组声明 [英] Token from Azure AD does not contain groups claim

查看:109
本文介绍了来自Azure AD的令牌不包含组声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照本教程进行操作,以获取团体的授权授权

https://github.com/Azure-Samples/active-directory-dotnet-webapp-groupclaims

但是当我登录时,我得到了一个没有团体要求的令牌

我尝试

-编辑清单

     


希望可以为您提供帮助

 

解决方案

这看起来像答复网址会导致此错误.确保配置中的回复网址与应用程序注册网址匹配.不要使用本地主机 除非在本地对其进行测试.

https://techcommunity.microsoft.com/t5/Azure -Active Directory/Azure-AD-Stopped-returning-group-claims/td-p/139394

https://artisticcheese.wordpress.com/2017年10月12日在azure活动目录中的轻松授权中使用组声明/

免责声明:此响应包含对第三方万维网站点的引用. Microsoft为方便您而提供此信息. Microsoft不控制这些站点,并且没有 测试了在这些站点上找到的任何软件或信息;因此,Microsoft无法对在此找到的任何软件或信息的质量,安全性或适用性做出任何陈述.使用发现的任何软件都存在固有的危险 在Internet上,Microsoft警告您,请确保在从Internet上检索任何软件之前,务必完全了解该风险.

-------------- -------------------------------------------------- ----------------------------------

如果此答案有帮助,点击"标记为答案"或 投票.要提供有关您的论坛体验的其他反馈,请单击 在这里


I followed this tutorial to get groups claim for authorization

https://github.com/Azure-Samples/active-directory-dotnet-webapp-groupclaims

But I when I log in, I got a token without groups claim

What I try

- Edit manifest 

"groupMembershipClaims": "All"

- Change 

"homepage": "https://localhost:4200/"


Hope that you can help

 

解决方案

This looks like the reply url cause this error. Ensure that the reply url in the config matches with the app registration url. Don’t use localhost unless testing its locally.

https://techcommunity.microsoft.com/t5/Azure-Active-Directory/Azure-AD-Stopped-returning-group-claims/td-p/139394

https://artisticcheese.wordpress.com/2017/10/12/use-group-claims-in-for-easy-authorization-in-azure-active-directory/

 Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

--------------------------------------------------------------------------------------------------

If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click here


这篇关于来自Azure AD的令牌不包含组声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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