swagger:route DELETE /admin/clients/{id} oAuth2 deleteOAuth2Client # Delete OAuth 2.0 Client Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume you
(w http.ResponseWriter, r *http.Request)
| 708 | // Extensions: |
| 709 | // x-ory-ratelimit-bucket: hydra-admin-high |
| 710 | func (h *Handler) deleteOAuth2Client(w http.ResponseWriter, r *http.Request) { |
| 711 | id := r.PathValue("id") |
| 712 | if err := h.r.ClientManager().DeleteClient(r.Context(), id); err != nil { |
| 713 | h.r.Writer().WriteError(w, r, err) |
| 714 | return |
| 715 | } |
| 716 | |
| 717 | w.WriteHeader(http.StatusNoContent) |
| 718 | } |
| 719 | |
| 720 | // Set OAuth 2.0 Client Token Lifespans |
| 721 | // |
nothing calls this directly
no test coverage detected