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

Method GetOAuth2GithubDefaultEligible

coderd/database/dbauthz/dbauthz.go:3731–3736  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

3729}
3730
3731func (q *querier) GetOAuth2GithubDefaultEligible(ctx context.Context) (bool, error) {
3732 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {
3733 return false, err
3734 }
3735 return q.db.GetOAuth2GithubDefaultEligible(ctx)
3736}
3737
3738func (q *querier) GetOAuth2ProviderAppByClientID(ctx context.Context, id uuid.UUID) (database.OAuth2ProviderApp, error) {
3739 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceOauth2App); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected