joscha/play-authenticate

What provider do I need for a email/password authentication?

nem25 opened this issue · 5 comments

nem25 commented

Hi,

Sorry I know this is not really an issue but the readme only has info about Google Authenticator.

I just want a simple email and password login where my users are stored in a mongo db. I don't want google or any social media authentication.

The example code has a few different providers and AuthUsers so I'm not really sure which one I need.

Thanks!

You need the one called password.

Yes, have a look at the sample:

bind(MyUsernamePasswordAuthProvider.class).asEagerSingleton();

Yep, you basically register a provider with a given key. You can write your own, use one of the ones that come with play-authenticate or extend from one of them.