In a situation, where the user is authenticated on another application (like oAuth or a custom security implementation), how can we simulate login?
What we intend to achieve is:
– use the user identifier key to check if the user exists
– if the user exists, set-up the session for the user
– basically, setup the attribute holder
– assign the user object, so that it is available thru getUser() method
So we are looking at signing-in programatically!
Any light on how do it in the simplest way?
if using sfDoctrineGuardPlugin, i’d do something like: