Skip to content

feat: implement organization role sync #14649

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 13 commits into from
Sep 17, 2024
Prev Previous commit
Next Next commit
fixup test
  • Loading branch information
Emyrk committed Sep 16, 2024
commit 8967a42c466db4b23591a5b1e70eb47f46d072d6
5 changes: 4 additions & 1 deletion coderd/idpsync/group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,12 @@ func TestGroupSyncTable(t *testing.T) {
},
},
{
Name: "NoSettingsNoUser",
Name: "NoSettings",
GroupSettings: nil,
Groups: map[uuid.UUID]bool{},
assertGroups: &orgGroupAssert{
ExpectedGroups: []uuid.UUID{},
},
},
{
Name: "LegacyMapping",
Expand Down
2 changes: 1 addition & 1 deletion enterprise/coderd/enidpsync/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (e EnterpriseIDPSync) ParseRoleClaims(ctx context.Context, mergedClaims jwt
slog.F("raw_value", rawType),
slog.Error(err),
)
// TODO: Deterine a static page or not
// TODO: Determine a static page or not
return idpsync.RoleParams{}, &idpsync.HTTPError{
Code: http.StatusInternalServerError,
Msg: "Login disabled until site wide OIDC config is fixed",
Expand Down