我试图从Azure的AD获取用户群体。 我得到一个令牌代码的这些简单的线条:Azure的AD JWT认证 - 索赔缺少
if (this.user == null)
user = await AuthenticationManager.DefaultManager.CurrentClient.LoginAsync(this, MobileServiceAuthenticationProvider.WindowsAzureActiveDirectory);
if (user != null)
{
System.Diagnostics.Debug.WriteLine("Token = " + user.MobileServiceAuthenticationToken);
}
当我粘贴标记在JWT调试器目前该网站上: https://jwt.io/我得到一些信息(stable_sid,SID,子,IDP, ver,iss,aud,exp,nbf)但我似乎无法得到团体声称。
我Azured AD加入所需的权限来读取微软图形和Azure的Active Directory组,但它并没有改变在任何标记。
我缺少的是让用户群体?
预先感谢您。
编辑:评论员指出,我忘了提及我修改了清单“groupMembershipClaims”:“SecurityGroup”,我也试过“全部”,但仍然没有要求。
http://stackoverflow.com/a/43258621/1658906请问这帮助? – juunas
感谢您的关注,我忘记提及我修改了清单,但它仍然没有给我预期的主张。 –