How does IPrincipal gets its roles?
Posted
by abatishchev
on Stack Overflow
See other posts from Stack Overflow
or by abatishchev
Published on 2010-05-23T22:32:33Z
Indexed on
2010/05/23
22:40 UTC
Read the original article
Hit count: 543
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.
© Stack Overflow or respective owner