8000 Support various dex connectors for login by kuosandys · Pull Request #3996 · giantswarm/happa · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support various dex connectors for login #3996

New issue
< 8000 div class="px-4">

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

Merged
merged 8 commits into from
Jan 17, 2023

Conversation

kuosandys
Copy link
Contributor
@kuosandys kuosandys commented Jan 12, 2023

What does this PR do?

This PR adds support for selecting various dex connectors on login. Instead of calling dex with a specific connector_id, we now use connector_filter to filter the list of connectors, and present users with the appropriate selection list.

In order to correctly determine whether the logged in user is an "admin" within happa, we've previously checked whether the user has membership in the group referenced by window.config.mapiAuthAdminGroup. Since each identity provider has a different admin group name, this field is now an array of admin groups.

What is the effect of this change to users?

For customers:
After clicking on "Proceed to login", users will now be presented with dex's connector selection page of all customer connectors (connectors starting with customer).

For GS staff:
After navigating to /admin-login, users will now be presented with dex's connector selection page of all GS connectors (connectors starting with giantswarm).

Any background context you can provide?

Closes giantswarm/roadmap#1845.

What is needed from the reviewers?

Verify that logging in presents you with the dex connector selection page, and that logging in using any GS connectors provides you with admin features within happa (i.e. you can see internal app catalogs; you have the "Experiments" selection available to you in the dropdown menu located at the top right corner of the screen).

@kuosandys kuosandys force-pushed the support-various-dex-connectors branch from 168d32c to ca65119 Compare January 12, 2023 13:09
@kuosandys kuosandys marked this pull request as ready for review January 12, 2023 15:25
@kuosandys kuosandys requested a review from a team January 12, 2023 15:25
@kuosandys kuosandys added the kind/feature Introducing a new feature label Jan 12, 2023
@kuosandys kuosandys changed the title Support various dex connectors Support various dex connectors for login Jan 12, 2023
@kuosandys kuosandys added kind/change Changing existing functionality and removed kind/feature Introducing a new feature labels Jan 12, 2023
Copy link
Contributor
@mogottsch mogottsch left a comment

Choose a reason for hiding this comment

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

I could login with both connectors and had admin features 👍

Copy link
Contributor
@anvddriesch anvddriesch left a comment

Choose a reason for hiding this comment

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

I don't feel too confident reviewing the code but it worked for me, too, when I tried it :)

Copy link
Contributor
@gusevda gusevda left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@kuosandys kuosandys merged commit 186ba4a into main Jan 17, 2023
@kuosandys kuosandys deleted the support-various-dex-connectors branch January 17, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/change Changing existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update happa to accept various dex connectors on login
4 participants
0