M
MasterGaurav
Hi,
I need to push some more information than just username and roles in
the IPrincipal implementation.
For this, I wrote the following code (during authentication):
MyIdentity mi = new MyIdentity(....);
MyPrincipal mp = new MyPrincipal(....);
Context.User = mp;
FormsAuthentication.SetAuthCookie(...);
However, everytime I check for Context.User, I get a
GenericPrincipal. How can I have my own MyPrincipal come into
existence?
CHeers,
Gaurav Vaish
http://mastergaurav.org
http://mastergaurav.blogspot.com
----------------------------
I need to push some more information than just username and roles in
the IPrincipal implementation.
For this, I wrote the following code (during authentication):
MyIdentity mi = new MyIdentity(....);
MyPrincipal mp = new MyPrincipal(....);
Context.User = mp;
FormsAuthentication.SetAuthCookie(...);
However, everytime I check for Context.User, I get a
GenericPrincipal. How can I have my own MyPrincipal come into
existence?
CHeers,
Gaurav Vaish
http://mastergaurav.org
http://mastergaurav.blogspot.com
----------------------------