jaliss / securesocial

A module that provides OAuth, OAuth2 and OpenID authentication for Play Framework applications
http://www.securesocial.ws
Apache License 2.0
1.19k stars 511 forks source link

Skip logging in debug #581

Open bvdmitri opened 8 years ago

bvdmitri commented 8 years ago

Hello!

Is there any option to skip logging and use some default user in debug mode? It is really annoying to login each time after a line of code :)

Thanks for your help!

odroz commented 8 years ago

Hi, You may want to persist your users in the database as Play clears its cache at recompile. Especially the cookieAuth Token. Here is a pretty good tutorial that might need a little bit of tweak depending on your SecureSocial verison: http://www.filtercode.com/play/play-scala-securesocial

For security reasons, I would advise to encrypt the token in the DB. If your DB gets compromised, then all token would be visible to the attacker...

Good luck

Olivier Droz Ing. Inf. Dipl. EPF Rte de la Feuillère 29 1010 Lausanne www.olivierdroz.ch

On Wed, Feb 24, 2016 at 5:30 PM, Bagaev Dmitri notifications@github.com wrote:

Hello!

Is there any option to skip logging and use some default user in debug mode? It is really annoying to login each time after a line of code :)

Thanks for your help!

— Reply to this email directly or view it on GitHub https://github.com/jaliss/securesocial/issues/581.