Skip to content

Commit 40bf367

Browse files
committed
wip
1 parent a89f76b commit 40bf367

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

enterprise/coderd/idp-sync/idpsync.go

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package idp_sync
2+
3+
import (
4+
"context"
5+
"regexp"
6+
7+
"github.com/coder/coder/v2/coderd/database"
8+
"github.com/coder/coder/v2/codersdk"
9+
)
10+
11+
type IDPSync struct {
12+
*codersdk.Entitlement
13+
}
14+
15+
// SynchronizeGroupsParams
16+
type SynchronizeGroupsParams struct {
17+
IDPGroups []string
18+
// TODO: These options will be moved outside of deployment into organization
19+
// scoped settings. So these parameters will be removed, and instead sourced
20+
// from some settings object that should have these values cached.
21+
// At present, these settings apply to the default organization.
22+
GroupFilter *regexp.Regexp
23+
CreateMissingGroups bool
24+
}
25+
26+
// SynchronizeGroups takes a given user, and ensures their group memberships
27+
// within a given organization are correct.
28+
func SynchronizeGroups(ctx context.Context, tx database.Store, params *SynchronizeGroupsParams) error {
29+
30+
return nil
31+
}

0 commit comments

Comments
 (0)