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

Method CountOIDCLinkedIDsByIssuer

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

Groups OIDC user links by their issuer prefix (the part before "||" in linked_id) and returns a count for each. Empty linked_ids are reported with an empty issuer_prefix. Used for analysis before resetting mismatched links.

(ctx context.Context)

Source from the content-addressed store, hash-verified

107 // with an empty issuer_prefix. Used for analysis before resetting
108 // mismatched links.
109 CountOIDCLinkedIDsByIssuer(ctx context.Context) ([]CountOIDCLinkedIDsByIssuerRow, error)
110 // CountPendingNonActivePrebuilds returns the number of pending prebuilds for non-active template versions
111 CountPendingNonActivePrebuilds(ctx context.Context) ([]CountPendingNonActivePrebuildsRow, error)
112 CountUnreadInboxNotificationsByUserID(ctx context.Context, userID uuid.UUID) (int64, error)

Callers 4

TestSystemFunctionsMethod · 0.65
AnalyzeOIDCLinksFunction · 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 1

TestSystemFunctionsMethod · 0.52