sarvan75 / yii-user-management

Automatically exported from code.google.com/p/yii-user-management
0 stars 0 forks source link

YumAuthController: Setting login_type in session in YumWebUser #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It might be desired to create a cleaner auth_info structure in session, which 
stores login_type along with other information. This information should 
therefore be managed by YumWebUser.

Storing auth information in cookie should just be an option - either because we 
want quicker expiry times for auth information, or because one may not want to 
keep the auth info in session.

This will help us introduce "Pre-auth" environment which helps in cleaner 
support for session-enablement based authentications like facebook/twitter etc. 

-Vinod

Original issue reported on code.google.com by vinod.ku...@gmail.com on 26 May 2011 at 12:37

GoogleCodeExporter commented 9 years ago
Some learnings:

CWebUser's login() method, called after authentication is successful, does 
support storing of YumUserIdentity's states to be saved in session.

YumUserIdentity should therefore implement a clean approach to have 
auth-specific structure which stores the login_type as well as auth_type 
specific information (such as facebook ID in case of facebook login).

Original comment by vinod.ku...@gmail.com on 26 May 2011 at 12:56