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

Add basic http auth support to mailcatcher #35

Closed
wants to merge 3 commits into from
Closed

Conversation

yanks
Copy link

@yanks yanks commented Feb 4, 2012

Just added some commandline options and added a http auth filter in sinatra. We need this for some staging servers that have internet facing IPs.

Thanks for the sweet gem man!

@sj26
Copy link
Owner

sj26 commented Feb 16, 2012

Hi there!

Apart from the websocket hole, I'm not keen on adding authentication support explicitly to the project. I'd like to keep the application itself simple, and it's intended to be run by a developer on a single machine.

I'd suggest firewalling and proxying the application (with something websocket enabled like Pound) if you have such a requirement.

An alternative would be to customise the MailCatcher startup script a little and insert your own authentication middleware into the stack, pretty sure Rack provides some standard some-such which should work.

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.

2 participants