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

user login #983

Merged
merged 3 commits into from
Apr 6, 2022
Merged

user login #983

merged 3 commits into from
Apr 6, 2022

Conversation

whereismyjetpack
Copy link
Contributor

Fixes #836

Adds ability to support penn state users as well as guest users, right now logins aren't intended for general public use, so we've hidden the 'login' behind a /login route. once logged in, we pull user email, and groups from our oauth-proxy, we can use this information to allow admins to do adminy things in the future. right now it drives weather or not mini-profiler is shown

To use locally, we have to set the HTTP header X_AUTH_REQUEST_EMAIL in our browser. I'm using mod-headers for testing
Screen Shot 2022-04-05 at 4 51 58 PM

We might want to, eventually, support a /logout route, and maybe in the future wrap things like bookmarks in a if current_user block? I'm thinking out loud on those.

As another PR, I may want to code up an /admin interface, where we can maybe do things like set banners, index records, etc.

@banukutlu banukutlu added this to the 1.1.x milestone Apr 5, 2022
Copy link
Contributor

@banukutlu banukutlu left a comment

Choose a reason for hiding this comment

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

LGTM 🎉 tested on the preview, works nicely. great job @whereismyjetpack 👏🏻 thanks!

@banukutlu banukutlu merged commit fda7ded into main Apr 6, 2022
@banukutlu banukutlu deleted the preview/userlogin branch April 6, 2022 19:49
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.

User Logins
2 participants