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(docs): adjust note about SDK support on oauth2 flow endpoints #3812

Merged
merged 1 commit into from
Aug 6, 2024
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
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
Loading