Skip to content

chore: implement OIDCClaimFieldValues for idp sync mappings auto complete #15576

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 9 commits into from
Nov 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
linting
  • Loading branch information
Emyrk committed Nov 19, 2024
commit 785243411f463162a54f4600566af14f952e3912
8 changes: 4 additions & 4 deletions coderd/database/dbmem/dbmem.go
Original file line number Diff line number Diff line change
Expand Up @@ -8436,13 +8436,13 @@ func (q *FakeQuerier) OIDCClaimFieldValues(_ context.Context, args database.OIDC
if !ok {
continue
}
switch value.(type) {
switch value := value.(type) {
case string:
values = append(values, value.(string))
values = append(values, value)
case []string:
values = append(values, value.([]string)...)
values = append(values, value...)
case []any:
for _, v := range value.([]any) {
for _, v := range value {
if sv, ok := v.(string); ok {
values = append(values, sv)
}
Expand Down
Loading