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

Method DeleteMCPServerUserToken

coderd/database/dbauthz/dbauthz.go:2106–2111  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteMCPServerUserTokenParams)

Source from the content-addressed store, hash-verified

2104}
2105
2106func (q *querier) DeleteMCPServerUserToken(ctx context.Context, arg database.DeleteMCPServerUserTokenParams) error {
2107 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
2108 return err
2109 }
2110 return q.db.DeleteMCPServerUserToken(ctx, arg)
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 {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected