-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register as a new user #28
Comments
Very nice registration form, indeed! I suppose tha the case depends whether the app knows about being use with authentication or not (I think for instance thatCassandre doesn't, right?)
Yes, this is possible, but could be blocked by some browser. If it is the case, then the user will just have to login again just after that.
If login and registration are on 2 different domains, they will just record credentials twice, and then should work like a charm. Since the registration will anyway be configured as part of a site, I think we can use the same domain as the app, with the proxy redirecting to a different server if needed.
Don't you mean 401 or 403 error ? Just because I realized it recently, I inform you that the common handlers of couchdb work only if the app is accessed through a couchdb virtual host. Using the |
Sorry, I was on a train with very low connectivity. I had not even finished the comment in the parenthesis. |
Indeed. I tested it yesterday. |
Alexis created a nice user registration form.
Users are created on CouchDB and can be used for authentication on AAAforREST (with HTTP basic or cookie on frontend, and HTTP basic on backend) or even through AAAforREST with cookie forwarding.
In the future, it could be upgraded with e-mail verification, password reset, etc.
As an HTML+jQuery page it can be served either by CouchDB as attachments (as it is for now) or by NodeJS.
However the real point is how this UI and the corresponding API (
_users
) will be integrated with existing apps:http://auth.acme.org/
),http://app.acme.org/_users
) – the registration app would be stored in the users database,http://auth.acme.org/
http://app.acme.org/_users
Of course we could adopt two solutions at the same time (solution 4 and one of the first three) to let the integrator choose between modifying the apps or not.
An objection against solution 2 could be raised if we wanted to automatically authenticate after registration (unless a cookie can be set for every subdomain of the same domain). However, I wonder if it is a good thing as many password manager don't record credentials in such cases.
@franck-eyraud Do you think about any other way to integrate it, any other criterion we should consider, or any comment on mine?
The text was updated successfully, but these errors were encountered: