Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: swagger for dynamic client registration #3141

Merged
merged 1 commit into from
Jun 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions client/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (h *Handler) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Pa
h.r.Writer().WriteCreated(w, r, ClientsHandlerPath+"/"+c.GetID(), &c)
}

// swagger:route POST /connect/register public dynamicClientRegistrationCreateOAuth2Client
// swagger:route POST /oauth2/register public dynamicClientRegistrationCreateOAuth2Client
//
// Register an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
//
Expand Down Expand Up @@ -251,7 +251,7 @@ func (h *Handler) updateClient(ctx context.Context, c *Client, validator func(*C
return nil
}

// swagger:route PUT /connect/register/{id} public dynamicClientRegistrationUpdateOAuth2Client
// swagger:route PUT /oauth2/register/{id} public dynamicClientRegistrationUpdateOAuth2Client
//
// Update an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
//
Expand Down Expand Up @@ -488,7 +488,7 @@ func (h *Handler) Get(w http.ResponseWriter, r *http.Request, ps httprouter.Para
h.r.Writer().Write(w, r, c)
}

// swagger:route GET /connect/register/{id} public dynamicClientRegistrationGetOAuth2Client
// swagger:route GET /oauth2/register/{id} public dynamicClientRegistrationGetOAuth2Client
//
// Get an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
//
Expand Down Expand Up @@ -566,7 +566,7 @@ func (h *Handler) Delete(w http.ResponseWriter, r *http.Request, ps httprouter.P
w.WriteHeader(http.StatusNoContent)
}

// swagger:route DELETE /connect/register/{id} public dynamicClientRegistrationDeleteOAuth2Client
// swagger:route DELETE /oauth2/register/{id} public dynamicClientRegistrationDeleteOAuth2Client
//
// Deletes an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
//
Expand Down