Skip to content

Commit

Permalink
fix(docs): adjust note about SDK support on oauth2 flow endpoints (#3812
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jonas-jonas authored Aug 6, 2024
1 parent 829e120 commit d0e047c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions oauth2/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,8 @@ type oAuth2TokenExchange struct {
// Use open source libraries to perform OAuth 2.0 and OpenID Connect
// available for any programming language. You can find a list of libraries here https://oauth.net/code/
//
// The Ory SDK is not yet able to this endpoint properly.
// This endpoint should not be used via the Ory SDK and is only included for technical reasons.
// Instead, use one of the libraries linked above.
//
// Consumes:
// - application/x-www-form-urlencoded
Expand Down Expand Up @@ -1035,16 +1036,18 @@ func (h *Handler) oauth2TokenExchange(w http.ResponseWriter, r *http.Request) {
// Use open source libraries to perform OAuth 2.0 and OpenID Connect
// available for any programming language. You can find a list of libraries at https://oauth.net/code/
//
// The Ory SDK is not yet able to this endpoint properly.
// This endpoint should not be used via the Ory SDK and is only included for technical reasons.
// Instead, use one of the libraries linked above.
//
// Consumes:
// - application/x-www-form-urlencoded
// Consumes:
// - application/x-www-form-urlencoded
//
// Schemes: http, https
// Schemes: http, https
//
// Responses:
// 302: emptyResponse
// default: errorOAuth2
// Responses:
//
// 302: emptyResponse
// default: errorOAuth2
func (h *Handler) oAuth2Authorize(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
ctx := r.Context()

Expand Down

0 comments on commit d0e047c

Please sign in to comment.