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

Method GetOAuth2ProviderAppSecretByID

coderd/database/dbauthz/dbauthz.go:3760–3765  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

3758}
3759
3760func (q *querier) GetOAuth2ProviderAppSecretByID(ctx context.Context, id uuid.UUID) (database.OAuth2ProviderAppSecret, error) {
3761 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceOauth2AppSecret); err != nil {
3762 return database.OAuth2ProviderAppSecret{}, err
3763 }
3764 return q.db.GetOAuth2ProviderAppSecretByID(ctx, id)
3765}
3766
3767func (q *querier) GetOAuth2ProviderAppSecretByPrefix(ctx context.Context, secretPrefix []byte) (database.OAuth2ProviderAppSecret, error) {
3768 return fetch(q.log, q.auth, q.db.GetOAuth2ProviderAppSecretByPrefix)(ctx, secretPrefix)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected