-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Use Email for SSO RBAC with Google OIDC #4612
Comments
This should be easy for you to create a PR type Claims struct {
jwt.Claims
Groups []string `json:"groups,omitempty"`
} That needs an type Claims struct {
jwt.Claims
Email string `json:"email,omitempty"`
Groups []string `json:"groups,omitempty"`
} Also need to update the docs and your config to add |
Will also be better to use Email, if available, in the |
Signed-off-by: Alex Collins <alex_collins@intuit.com>
I've created a dev build for you to test to see that it does what you need:
Please see #4644 for how to add email to your scopes, how to use it in your RBAC annotations, and how the email is re-formatted for the label. |
Checked new tag
|
Summary
When using SSO auth mode with Google's OIDC, the issuer identifier (subject) is a unique user ID that isn't very useful and is hard to use for identifying users and managing RBAC permissions in a scalable way.
It will be more useful to use the user's email as the subject when using google as the OIDC provider.
per Google's OIDC documentation:
Use Cases
When google is set as the OIDC provider (issuer
https://accounts.google.com
). This is very useful for teams using G suite.Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: