I have a win 8 app in which I want to authenticate ADFS user based on role. I found a article
http://msdn.microsoft.com/library/azure/dn169448.aspx
This is a very good article to integrate win 8 app with Adfs.
AuthenticationContext authenticationContext = new AuthenticationContext("https://login.windows.net/" + domainName);AuthenticationResult result = await authenticationContext.AcquireTokenAsync(resourceAppIDUri, clientID);
if (AuthenticationStatus.Succeeded != result.Status)
{}
By using this code user get successfully authenticated, in case succeeded than I want to authorize user against user group. Is there any way?
I found this link http://www.cloudidentity.com/blog/2013/01/22/group-amp-role-claims-use-the-graph-api-to-get-back-isinrole-and-authorize-in-windows-azure-ad-apps/
But this uses graph api? I want it in a simpler way.