Using Custom RoleProvider with Windows Identity Foundation - STS
I created STS that does the authentication part. It uses Custom Membership provider. After successful login I get redirected to my RP website. All works fine in terms of authentication. I have defined a CustomRolesProvider defined in web.config of my RP website. It uses the username returned by STS to fetch the roles for that user from RP's database. When I use Roles.GetRolesForUser I do get the right roles. I have the following in the web.config of my RP to allow only admin to give access to admin folder. And the sitemap provider has securityTrimmingEnabled="true" <location path="admin">