Hi there. I have a SSO applicatoin, and I do not get real roles (like from membership provider or role provider).
When my user logs in, I am hoping to just look at an attribute of the user profile in the local users table to add a role for later 'isinrole' programmatic support.
I cannot use role provider since it is a single sign on tha tI do not really control.
So when a user logs in successfully, I would like to just check some part of their record and add a role like 'Manager' or 'User' and such. Also I would like to have access to custom attributes to user during the session, like first name last name, etc.
agent_smith
Contributor
2030 Points
573 Posts
I need to add a simple custom role and attribute at login/session
Feb 22, 2013 03:09 PM|LINK
Hi there. I have a SSO applicatoin, and I do not get real roles (like from membership provider or role provider).
When my user logs in, I am hoping to just look at an attribute of the user profile in the local users table to add a role for later 'isinrole' programmatic support.
I cannot use role provider since it is a single sign on tha tI do not really control.
So when a user logs in successfully, I would like to just check some part of their record and add a role like 'Manager' or 'User' and such. Also I would like to have access to custom attributes to user during the session, like first name last name, etc.
AGENT_SMITH
BrockAllen
All-Star
27534 Points
4907 Posts
MVP
Re: I need to add a simple custom role and attribute at login/session
Feb 22, 2013 08:56 PM|LINK
http://brockallen.com/2012/05/23/think-twice-about-using-roleprovider/
and maybe:
http://brockallen.com/2013/01/26/replacing-forms-authentication-with-wifs-session-authentication-module-sam-to-enable-claims-aware-identity/
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/