What provider do I need for a email/password authentication?
nem25 opened this issue · 5 comments
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
.
So any of the providers in here - https://github.com/joscha/play-authenticate/tree/master/code/app/com/feth/play/module/pa/providers/password ?
Yes, have a look at the sample:
Ah ok so this one - https://github.com/joscha/play-authenticate/blob/4b3fe4965713f218df5950eedb555b89f53f0519/samples/java/play-authenticate-usage/app/providers/MyUsernamePasswordAuthProvider.java
Awesome thanks so much for your help!
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.