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

Method DeleteOAuth2ProviderAppByClientID

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

Source from the content-addressed store, hash-verified

2111}
2112
2113func (q *querier) DeleteOAuth2ProviderAppByClientID(ctx context.Context, id uuid.UUID) error {
2114 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceOauth2App); err != nil {
2115 return err
2116 }
2117 return q.db.DeleteOAuth2ProviderAppByClientID(ctx, id)
2118}
2119
2120func (q *querier) DeleteOAuth2ProviderAppByID(ctx context.Context, id uuid.UUID) error {
2121 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceOauth2App); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected