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

Method UpdateExternalAuthLink

coderd/database/querier.go:1255–1255  ·  view source on GitHub ↗
(ctx context.Context, arg UpdateExternalAuthLinkParams)

Source from the content-addressed store, hash-verified

1253 UpdateEncryptedAIProviderSettings(ctx context.Context, arg UpdateEncryptedAIProviderSettingsParams) (AIProvider, error)
1254 UpdateEncryptedUserAIProviderKey(ctx context.Context, arg UpdateEncryptedUserAIProviderKeyParams) (UserAiProviderKey, error)
1255 UpdateExternalAuthLink(ctx context.Context, arg UpdateExternalAuthLinkParams) (ExternalAuthLink, error)
1256 // Optimistic lock: only update the row if the refresh token in the database
1257 // still matches the one we read before attempting the refresh. This prevents
1258 // a concurrent caller that lost a token-refresh race from overwriting a valid

Callers 11

externalAuthCallbackMethod · 0.65
TestUserMethod · 0.65
TestRefreshTokenFunction · 0.65
RefreshTokenMethod · 0.65
RotateFunction · 0.65
DecryptFunction · 0.65
TestExternalAuthLinksFunction · 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 4

TestUserMethod · 0.52
TestRefreshTokenFunction · 0.52
TestExternalAuthLinksFunction · 0.52