swagger:route POST /admin/clients oAuth2 createOAuth2Client # Create OAuth 2.0 Client Create a new OAuth 2.0 client. If you pass `client_secret` the secret is used, otherwise a random secret is generated. The secret is echoed in the response. It is not possible to retrieve it later on. Consumes:
(w http.ResponseWriter, r *http.Request)
| 92 | // Extensions: |
| 93 | // x-ory-ratelimit-bucket: hydra-admin-high |
| 94 | func (h *Handler) createOAuth2Client(w http.ResponseWriter, r *http.Request) { |
| 95 | c, err := h.CreateClient(r, h.r.ClientValidator().Validate, false) |
| 96 | if err != nil { |
| 97 | h.r.Writer().WriteError(w, r, err) |
| 98 | return |
| 99 | } |
| 100 | |
| 101 | h.r.Writer().WriteCreated(w, r, urlx.MustJoin("/admin", ClientsHandlerPath, url.PathEscape(c.GetID())), &c) |
| 102 | } |
| 103 | |
| 104 | // OpenID Connect Dynamic Client Registration Parameters |
| 105 | // |
nothing calls this directly
no test coverage detected