Reputation: 10514
I am trying to hook into the Web Forms ASP.NET pipeline and extend the HttpContext.Current.User.Identity
in such a way that the Name
property returns a custom implementation.
One possible approach which I have found in another answer that it is possible to add new properties by adding claims. The two questions I have are:
Name
property?Upvotes: 0
Views: 2257
Reputation: 69
You can implement the PostAuthenticate event in your application's Global.asax file. The PostAuthenticate event occurs after the FormsAuthenticationModule has verified the forms authentication cookie.
the following link might be helpful: http://bytes.com/topic/asp-net/answers/860607-setting-httpcontext-current-user
Upvotes: 1