MCPcopy Index your code
hub / github.com/coder/coder / ParseGroupClaims

Method ParseGroupClaims

coderd/idpsync/idpsync.go:44–44  ·  view source on GitHub ↗

ParseGroupClaims takes claims from an OIDC provider, and returns the params for group syncing. Most of the logic happens in SyncGroups.

(ctx context.Context, mergedClaims jwt.MapClaims)

Source from the content-addressed store, hash-verified

42 // ParseGroupClaims takes claims from an OIDC provider, and returns the params
43 // for group syncing. Most of the logic happens in SyncGroups.
44 ParseGroupClaims(ctx context.Context, mergedClaims jwt.MapClaims) (GroupParams, *HTTPError)
45 // SyncGroups assigns and removes users from groups based on the provided params.
46 SyncGroups(ctx context.Context, db database.Store, user database.User, params GroupParams) error
47 // GroupSyncSettings is exposed for the API to implement CRUD operations

Callers 4

userOIDCMethod · 0.65
TestParseGroupClaimsFunction · 0.65
ParseGroupClaimsMethod · 0.65

Implementers 1

AGPLIDPSynccoderd/idpsync/idpsync.go

Calls

no outgoing calls

Tested by 2

TestParseGroupClaimsFunction · 0.52