joscha / play-authenticate

An authentication plugin for Play Framework 2.x (Java)
http://joscha.github.com/play-authenticate/
Other
807 stars 367 forks source link

loginUser method has no context #297

Closed umbreak closed 8 years ago

umbreak commented 8 years ago

I need to save some stuff in my databse whenever a login has been successfully. This "stuff" which needs to be safe should contain some request parameters (accessible though context.request(). However, the method loginUser does not provide a Context so I can't fetch any request parameters at that point.

If it is not in the loginUser method, where can I intercept when a successful login takes place? I know I could do it overriding the authenticate method. But I would not like to use that option...

umbreak commented 8 years ago

Ok, I did it adding the context to my extended authUser in the method buildLoginAuthUser