D
dSchwartz
I've started getting into using forms authentication for asp.net apps
with c#. From what i understand so far (limited) I like the way
things work! I've got an application working right now where an email
address and password is checked from a database and I can check the
authenticated user's email address with
HttpContext.Current.User.Identity.Name. This all works fine!
I want to be able to do:
HttpContext.Current.User.(customIdentity?).EmailAddress
HttpContext.Current.User.(customIdentity?).UserID
HttpContext.Current.User.(customIdentity?).NickName
I'm just a bit confused about what i have to do after reading many
different posts and articles about this. It seems to me like i should
only have to create a custom class that extends IIdentity, but then to
use that don't i have to create a custom class that extends IPrincipal
also? and then it also seems i need a custom
FormsAuthenticationTicket class also???
I'm just looking for the simplest way to do this, which classes do i
have to create custom for this action?
Thanks for your time!
with c#. From what i understand so far (limited) I like the way
things work! I've got an application working right now where an email
address and password is checked from a database and I can check the
authenticated user's email address with
HttpContext.Current.User.Identity.Name. This all works fine!
I want to be able to do:
HttpContext.Current.User.(customIdentity?).EmailAddress
HttpContext.Current.User.(customIdentity?).UserID
HttpContext.Current.User.(customIdentity?).NickName
I'm just a bit confused about what i have to do after reading many
different posts and articles about this. It seems to me like i should
only have to create a custom class that extends IIdentity, but then to
use that don't i have to create a custom class that extends IPrincipal
also? and then it also seems i need a custom
FormsAuthenticationTicket class also???
I'm just looking for the simplest way to do this, which classes do i
have to create custom for this action?
Thanks for your time!