18F / epa-notice

Web interface for viewing and commenting on proposed changes to federal regulations
Other
7 stars 17 forks source link

Add middleware for basic auth requirement #241

Closed cmc333333 closed 8 years ago

cmc333333 commented 8 years ago

Reuses the existing, relatively hardened HTTP AUTH comparisons from regcore. Due to the loop back, we need to also set the AUTH info in API_BASE

Resolves #240.

I can imagine agencies wanting to add auth to only certain paths, but I don't think we need that flexibility in the near future.

Note, this will require everyone using the demo site (even just for data retrieval) add appropriate authentication. Please flag our dev channel before merging.