User.IsInRole(“fake group”) results in “The trust relationship between the primary domain and the trusted domain failed”
问题 I have an MVC 3 app, using Windows Authentication with Claims using WIF 4.5. Access to the application is controlled (currently) via membership in an AD group: <deny users="?" /> <allow roles="domain\somegroup" /> <deny users="*" /> In addition to the AD groups, we have custom roles that need to be added. (This app is being converted from Forms to Windows authentication) To support these custom roles (until they are managed in AD), we are adding them as ClaimTypes.GroupSid claims to the user,