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

Method UnlinkOIDCUsersByIssuerMismatch

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

Resets linked_id to '' for OIDC links where the linked_id is non-empty and does not begin with the expected issuer prefix. This allows users to re-authenticate under a new OIDC provider.

(ctx context.Context, expectedPrefix string)

Source from the content-addressed store, hash-verified

1176 // and does not begin with the expected issuer prefix. This allows users to
1177 // re-authenticate under a new OIDC provider.
1178 UnlinkOIDCUsersByIssuerMismatch(ctx context.Context, expectedPrefix string) (int64, error)
1179 UnpinChatByID(ctx context.Context, id uuid.UUID) error
1180 UnsetDefaultChatModelConfigs(ctx context.Context) error
1181 UpdateAIBridgeInterceptionEnded(ctx context.Context, arg UpdateAIBridgeInterceptionEndedParams) (AIBridgeInterception, error)

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 1

TestSystemFunctionsMethod · 0.52