Skip to content

fix: handle omitted role sync claim #8697

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

Merged
merged 2 commits into from
Jul 24, 2023
Merged

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jul 24, 2023

No description provided.

@@ -965,7 +965,8 @@ func (api *API) userOIDC(rw http.ResponseWriter, r *http.Request) {
// a member. This is because there is no way to tell the difference
// between []string{} and nil for OIDC claims. IDPs omit claims
// if they are empty ([]string{}).
rolesRow = []string{}
// Use []interface{}{} so the next typecast works.
rolesRow = []interface{}{}
Copy link
Member Author

Choose a reason for hiding this comment

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

I dislike this typecasting, we might want to change it later.

@Emyrk Emyrk requested a review from coadler July 24, 2023 16:17
@Emyrk Emyrk merged commit ac559f1 into main Jul 24, 2023
@Emyrk Emyrk deleted the stevenmasley/handle_user_no_claim branch July 24, 2023 19:50
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2023
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.

2 participants