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

Mounting Letter_Opener overrides any authentication #43

Closed
Meatballs1 opened this issue Aug 28, 2015 · 3 comments
Closed

Mounting Letter_Opener overrides any authentication #43

Meatballs1 opened this issue Aug 28, 2015 · 3 comments

Comments

@Meatballs1
Copy link

It looks like the default ApplicationController bundled in app/controllers overrides the target rails project ApplicationController. Therefore even if you have a default authentication method in your project's ApplicationController you can still browse directly to /letter_opener without authenticating.

:(

@Meatballs1
Copy link
Author

I'm thinking this may just be an underlying issue with Rails Engines: http://jacopretorius.net/2012/12/authenticating-rails-engines-with-devise.html

@sobrinho
Copy link

sobrinho commented Nov 4, 2015

If you want to authenticate the access to /letter_opener, I think you are looking for route constraints :)

@pseudomuto
Copy link
Collaborator

This is very old at this point and has no recent activity. I'm going to close it for now. Feel free to open a new issue/PR if this is still a concern.

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

3 participants