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

Method OIDCClaimFields

coderd/database/querier.go:1084–1084  ·  view source on GitHub ↗

OIDCClaimFields returns a list of distinct keys in the the merged_claims fields. This query is used to generate the list of available sync fields for idp sync settings.

(ctx context.Context, organizationID uuid.UUID)

Source from the content-addressed store, hash-verified

1082 // OIDCClaimFields returns a list of distinct keys in the the merged_claims fields.
1083 // This query is used to generate the list of available sync fields for idp sync settings.
1084 OIDCClaimFields(ctx context.Context, organizationID uuid.UUID) ([]string, error)
1085 // Arguments are optional with uuid.Nil to ignore.
1086 // - Use just 'organization_id' to get all members of an org
1087 // - Use just 'user_id' to get all orgs a user is a member of

Callers 5

requireClaimsFunction · 0.65
OIDCClaimFieldsMethod · 0.65
OIDCClaimFieldsMethod · 0.65
TestOrganizationMethod · 0.65
idpSyncClaimFieldsMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 2

requireClaimsFunction · 0.52
TestOrganizationMethod · 0.52