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

Method revokeOAuth2Token

coderd/oauth2.go:172–174  ·  view source on GitHub ↗

@Summary Revoke OAuth2 tokens (RFC 7009). @ID oauth2-token-revocation @Accept x-www-form-urlencoded @Tags Enterprise @Param client_id formData string true "Client ID for authentication" @Param token formData string true "The token to revoke" @Param token_type_hint formData string false "Hint about t

()

Source from the content-addressed store, hash-verified

170// @Success 200 "Token successfully revoked"
171// @Router /oauth2/revoke [post]
172func (api *API) revokeOAuth2Token() http.HandlerFunc {
173 return oauth2provider.RevokeToken(api.Database, api.Logger)
174}
175
176// @Summary OAuth2 authorization server metadata.
177// @ID oauth2-authorization-server-metadata

Callers 1

NewFunction · 0.95

Calls 1

RevokeTokenFunction · 0.92

Tested by

no test coverage detected