Skip to content
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

Support for RESTful URLs #122

Closed
darvid opened this issue Feb 21, 2015 · 1 comment
Closed

Support for RESTful URLs #122

darvid opened this issue Feb 21, 2015 · 1 comment

Comments

@darvid
Copy link

darvid commented Feb 21, 2015

I know sessions and user authentication in general are inherently not RESTful, but it would be nice to have optional support for changing the method and allowing dynamic URLs with this module. For example:

Register: PUT /account/<username>
Login:    POST /session
Logout:   DELETE /session
Validate: GET /session
@booleanbetrayal
Copy link
Collaborator

@darvid - the logout path (signOutUrl) is called with DELETE, the sign-in path (emailSignInPath) is called with POST, the validate path (tokenValidationPath) is called with GET and the email registration (emailRegistrationPath) uses POST, since that is the expected REST paradigm for new record creation (whereas PUT generally implies knowledge of location / previous existence).

In short, you should be able to configure this to be as REST-ful as you'd like. Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants