Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Authorize ADFS roles in mvc

$
0
0

I have a win 8 app in which I want to authenticate ADFS user based on role. I am using code like this

        AuthenticationContext authenticationContext = new        AuthenticationContext("https://login.windows.net/" + domainName);

        AuthenticationResult result = await authenticationContext.AcquireTokenAsync(resourceAppIDUri, clientID);
        if (AuthenticationStatus.Succeeded != result.Status)
        {}

If I succeeded than I want to authorize user against role. Is there any way?


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>