A
alexandis
There are tons of articles about custom role and provider membership,
but they just tear me apart and confuse
The situation is following: I use DB2, so I wrote custom role +
membership providers.
Membership provider seems to work. I use forms authentication, so as
articles say, I need to do some magic to be able to get roles for
current user, because microsoft mechanism works only for windows
authentication...
The articles are
http://www.howtodothings.com/computers/a792-aspnet-forms-authentication-with-roles.html
and
http://www.codeproject.com/aspnet/formsroleauth.asp
Ticket, hmm... I guess I don't need it, because I use login control
for authentication, I just need to get roles for the authenticated
user somewhere... where?? Do I need to create instance of my role
provider class?? There's no info about it on MSDN site. I've decided
to use first article approach, but WHERE to start from?
Why HttpContext.Current.User returns null? When should I create
application array for the roles?
My client waits until i'm done with login page, but I'm totally lost
in all this info....
but they just tear me apart and confuse
The situation is following: I use DB2, so I wrote custom role +
membership providers.
Membership provider seems to work. I use forms authentication, so as
articles say, I need to do some magic to be able to get roles for
current user, because microsoft mechanism works only for windows
authentication...
The articles are
http://www.howtodothings.com/computers/a792-aspnet-forms-authentication-with-roles.html
and
http://www.codeproject.com/aspnet/formsroleauth.asp
Ticket, hmm... I guess I don't need it, because I use login control
for authentication, I just need to get roles for the authenticated
user somewhere... where?? Do I need to create instance of my role
provider class?? There's no info about it on MSDN site. I've decided
to use first article approach, but WHERE to start from?
Why HttpContext.Current.User returns null? When should I create
application array for the roles?
My client waits until i'm done with login page, but I'm totally lost
in all this info....