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

Identify Middleware #184

Merged
merged 26 commits into from Sep 12, 2019
Merged

Identify Middleware #184

merged 26 commits into from Sep 12, 2019

Conversation

ingalls
Copy link
Contributor

@ingalls ingalls commented Sep 6, 2019

Context

Add a middleware to ensure that all access to a given hecate stack is authenticated, and if not, to redirect the user to a login portal

cc/ @ingalls

@ingalls ingalls self-assigned this Sep 6, 2019
@ingalls
Copy link
Contributor Author

ingalls commented Sep 10, 2019

Screenshot from 2019-09-10 11-34-30

Added a very simple login page to be redirected to in case the user is not authenticated

Copy link
Contributor

@miccolis miccolis left a comment

Choose a reason for hiding this comment

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

This looks reasonable to me, with two caveats;

  1. I think use http Basic auth is a great first step and solid utility auth method, but it demands a secured context; ie HTTPS, or a closed network. We should consider documenting this.
  2. We should do a comprehensive review of the cache headers (or lack thereof) for authenticated endpoints and make sure they make sense for contexts where Hecate is deployed.

@ingalls ingalls merged commit 470cb0a into master Sep 12, 2019
@ingalls ingalls deleted the identify branch September 12, 2019 15:10
@ingalls ingalls mentioned this pull request Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants