خرید بک لینک

Vote count: 0

I have a web application and I need to use there AD UserGroups. I need to do this in my views and cotrollers:

var User = System.Web.HttpContext.Current.User;
if (User.IsInRole("DOMAIN\group"))
{
                Show();            
}

I´m using ClaimsBased Identity in application, but I have access to WindowsIndetity too. What I want is add WindowsIdentity claims / groups to ClaimIdentity and after that work with ActiveDirectory userGroups like roles.

It is possible ?

Thanks for help !

asked 4 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 27 اسفند 1394 ساعت: 23:24

صفحه بندی