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

Method GetOAuth2ProviderAppCodeByPrefix

coderd/database/dbauthz/dbauthz.go:3756–3758  ·  view source on GitHub ↗
(ctx context.Context, secretPrefix []byte)

Source from the content-addressed store, hash-verified

3754}
3755
3756func (q *querier) GetOAuth2ProviderAppCodeByPrefix(ctx context.Context, secretPrefix []byte) (database.OAuth2ProviderAppCode, error) {
3757 return fetch(q.log, q.auth, q.db.GetOAuth2ProviderAppCodeByPrefix)(ctx, secretPrefix)
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 {

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.70

Tested by

no test coverage detected