c# - How to get Azure Active Directory role or user group -


I have a winning 8 app in which I want to authenticate the role-based ADFS user. I found an article It is a great article to integrate Win 8 App with Edge and uses MVC as a webclant for advertising.

  Authentication contact authentication contax = new authentication contact ("https://login.windows.net/" + domain name); Authentication result is awaiting result = certification. Consort Acquired TokensSync (resourceAppIDUri, clientID); If (Authentication status. Responsive! = Result.Status) {}  

By using this code the user is successfully certified, since I want to authorize the user against the user group . Is there any way?

There is a method in the claim, principal isinol () but it always gives false. And there is nothing for the role or the user group in the claim collection. I searched the net and found this link

but it uses graph API. I want it in a simple way. Tried to use you, but I received a personal exception when requesting the user ('{1}) / member. The graph API can only be used by the Admin Privileges account, so how do I get the current user login group?

This post is for Azure Active Directory. The only way to get roles is to graph the API Is through.

If you want to use ADFS ADFS does not support graph API. ADFE plays a role in the form of claims. It uses a SAML token.

But the title is titled " Azur Edi IsInRole"?

Please explain the question to explain whether topology (ADFS / AAD) is targeting you.

Win 8 applications are referred to as basic applications, they usually use OAuth OAuth is supported only in ADFS 3.0, that is, Server 2012 R2.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -