Skip to content

chore: use legacy "AssignDefault" option for legacy behavior in SCIM #14696

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
Sep 17, 2024

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Sep 16, 2024

AssignDefault is a boolean flag mainly for single org and legacy deployments. Use this flag to determine SCIM behavior.

Mimics behavior of OIDC auth creating a user:

coder/coderd/userauth.go

Lines 1312 to 1315 in b03cb00

orgIDs := []uuid.UUID{}
if params.OrganizationSync.IncludeDefault {
orgIDs = append(orgIDs, defaultOrganization.ID)
}

In future we should probably reuse the same code path for OIDC and SCIM auth flow.

AssignDefault is a boolean flag mainly for single org and legacy
deployments. Use this flag to determine SCIM behavior.
@Emyrk Emyrk changed the title chore: reference legacy assign default option for legacy behavior chore: user legacy "AssignDefault" option for legacy behavior in SCIM Sep 16, 2024
@Emyrk Emyrk changed the title chore: user legacy "AssignDefault" option for legacy behavior in SCIM chore: use legacy "AssignDefault" option for legacy behavior in SCIM Sep 16, 2024
@Emyrk Emyrk requested a review from coadler September 16, 2024 21:34
@Emyrk Emyrk merged commit 1f60942 into colin/scim-org Sep 17, 2024
22 of 26 checks passed
@Emyrk Emyrk deleted the stevenmasley/scim_adjust branch September 17, 2024 00:06
@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2024
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