Comments (3)
Returning USER_CREATED
means that there is no verification, e.g. the email is not needed - why would you want the user to verify his/her email address, if you allow that person to log in without that verification anyways?
Passing the context
down would be an option, making sendVerifyEmailMailing
protected is a bad idea I think because then there is virtually no API any more, but just a shell of a provider that can be used to do virtually anything.
Are you aware that you can write your very own login provider completely decoupled from any provider code that is implemented and shipped with Play! Authenticate already? If you have very special needs regarding the flow in your application that might be the easier way to go.
from play-authenticate.
Your right about making my own provider. I didn't take this approach as I
just needed a small correction with the default one.
In my use case, I still want users to verify their emails, however, I want
them to be able to have a seamless workflow when they signup and not be
bothered with verifying until later on. I still wanted to send out an
email when a user signs up which makes passing down the Context useful.
After your response, I will be making my own provider to do exactly what I
want, although passing the context down could be a good change if you're
willing to make a breaking change. Otherwise, I have what I need to
correct my code.
On Sun, Mar 3, 2013 at 3:30 PM, Joscha Feth [email protected]:
Returning USER_CREATED means that there is no verification, e.g. the
email is not needed - why would you want the user to verify his/her email
address, if you allow that person to log in without that verification
anyways?
Passing the context down would be an option, making sendVerifyEmailMailingprotected is a bad idea I think because then there is virtually no API any
more, but just a shell of a provider that can be used to do virtually
anything.Are you aware that you can write your very own login provider completely
decoupled from any provider code that is implemented and shipped with Play!
Authenticate already? If you have very special needs regarding the flow in
your application that might be the easier way to go.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/61#issuecomment-14354526
.
from play-authenticate.
To be honest I'd rather not make a breaking change if it's not really needed, because lots of people just upgrade to the latest version without reading the release notes :-O and then it won't work any more. However I think this can be changed in a backwards compatible manner by overloading with a protected method and then calling the one that is implemented in the subclass without context, so if you are willing to provide a pull request that does just that, I'd consider merging it - if you are going to implement your own provider though, I'd recommend to let the interface be stable :)
from play-authenticate.
Related Issues (20)
- Play 2.6 support HOT 12
- Oauth2 Google Scope issue
- There is a problem with Login with LinkedIn
- UserServicePlugin registered multiple times during production HOT 3
- connection from mobile APP HOT 1
- "playeasymail" in from when receive mail HOT 1
- return Result in JSON from signup or login HOT 1
- Sign up does not send any email HOT 3
- How to sign up users on their behalf by another user HOT 1
- Conflicting cross'version
- Opposite of merging users?
- "Remember Me" functionality? HOT 13
- TOTP using Google Authenticator? HOT 2
- Redirect on other URL than index HOT 3
- Sample app not running HOT 1
- Basic provider route throws exception HOT 6
- Create SQL insert User (Admin ect)
- Change Password never persists because of lack of setters? HOT 1
- Play 2.7 support HOT 4
- Play 2.5 link is not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-authenticate.