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

Basic Auth #9

Open
rob-murray opened this issue Mar 11, 2014 · 2 comments
Open

Basic Auth #9

rob-murray opened this issue Mar 11, 2014 · 2 comments

Comments

@rob-murray
Copy link
Owner

How about adding capability of Basic Auth?
By default is off, if a config file is present then take credentials and authenticate URIs with Basic Auth?

@dkam
Copy link
Contributor

dkam commented Aug 24, 2015

Hi Rob, I've had a first go at this. I've put the credentials in as arguments. Password could probably be pulled in from the environment rather than being put on the command line. Also, I'm happy to take a go at adding a config file. Maybe something using yaml or yaml/store ?

@dkam
Copy link
Contributor

dkam commented Aug 26, 2015

Hi Rob - I scrapped the first go at this. Here's my second take:

https://github.com/dkam/ferver/tree/basic_auth_take_2

I can send it as a pull request if that easier.

I've restructured things a bit so that we can first process the options and determine if we have a username passed in, then start Sinatra. I couldn't see how to require 'ferver' ( starting the app ) and then process options and add in the Sinatra::Auth::Basic middleware.

Any thoughts?

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

No branches or pull requests

2 participants