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

Require no authentication in determined User session related actions #64

Merged

Conversation

danguita
Copy link
Contributor

Connects to #59.

What does this PR do?

As the title says, we're requiring no authentication on every User and Admin session related actions. Those are:

In Admin namespace

  • Sign in
  • Confirmation
  • Invitation acceptance
  • Password change request
  • Password change

In User namespace

  • Registration
  • Sign in
  • Confirmation
  • Invitation acceptance
  • Password change request
  • Password change

It also increases the test coverage and normalizes implementations across namespaces.

How should this be manually tested?

Just check every single action from the list above halts the workflow by showing the "You are already signed in" message.

Those are:

In Admin namespace

- Sign in
- Confirmation
- Invitation acceptance
- Password change request
- Password change

In User namespace:

- Registration
- Sign in
- Confirmation
- Invitation acceptance
- Password change request
- Password change
@@ -10,6 +10,7 @@
# Admin module
namespace :admin do
get '/' => 'welcome#index', as: :root
get '/login' => 'sessions#new'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 not a big deal, but you are duplicating here sessions#new

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that was just for consistency. This way we're providing more semantic URLs in both user and admin namespaces:

  • /user/login
  • /user/signup
  • /admin/login

Thanks for pointing that out 👌

@ferblape ferblape merged commit 14b7d44 into master Nov 19, 2016
@ferblape ferblape deleted the 59-require-no-authentication-on-user-session-actions branch November 19, 2016 09:09
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

Successfully merging this pull request may close these issues.

None yet

2 participants