Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

OAuth Multiuserfix #13

Open
wants to merge 5 commits into
base: openshift
Choose a base branch
from

Conversation

wseaton
Copy link

@wseaton wseaton commented Feb 15, 2021

PR to fix multiple user sign up using OAuth when using the LDAP backend.

One of the issues with multi-user support is that the email field is not returned by the OCP users endpoint so it was previously unset by default, this makes it so more than 1 user cannot enroll. My solution for the LDAP backend is to parse the identity field and use the user's LDAP dn which is base64 decoded to reconstruct the user's email (or at least what LOOKS like it could be their email, it's not guaranteed to be accurate and is subject to LDAP implementation).

@wseaton wseaton changed the title WIP: OAuth Multiuserfix OAuth Multiuserfix Feb 15, 2021
@wseaton
Copy link
Author

wseaton commented Feb 15, 2021

@noseka1 @vpavlin this is tested to work on my cluster, at least it is properly authenticating multiple users whose identities are provided via the LDAP provider. Unfortunately I don't have another cluster configuration to test so I can't add support for other IdPs right now.

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

Successfully merging this pull request may close these issues.

1 participant