I have
FormsAuthentication.SetAuthCookie("someName", True)
as part of my custom login sequence. Later, I have some page only allowing a specific role:
<location path="myPage.aspx">
<system.web>
<authorization>
<allow roles="SomeRole"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
As far as I can tell, that makes a call to my role provider's implementation of GetRolesForUser. It appears to get the username parameter from Web.HttpContext.Current.User.Identity.Name.
My question is.... when does the username from the auth cookie get set as the Name in my current user identity?