How does IPrincipal gets its roles?

abatishchev picture abatishchev · May 24, 2010 · Viewed 9.8k times · Source

I need to get know how SiteMapProvider.IsAccessibleToUser() works.

Built-in XmlSiteMapProvider calls HttpContext.User.IsInRole() which uses System.Security.Principal.GenericPrincipal in case of forms authentication.

Where does the current user gets its roles? Which provider loads this kind of information? I want to overload it and use custom logic.

Answer

eidylon picture eidylon · May 24, 2010