8000 Account for redirected query param · coder/coder@fe2c91c · GitHub
[go: up one dir, main page]

Skip to content

Commit fe2c91c

Browse files
committed
Account for redirected query param
1 parent 9c3f272 commit fe2c91c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

enterprise/coderd/identityprovider/authorize.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ func Authorize(db database.Store, accessURL *url.URL) http.HandlerFunc {
5555
// TODO: @emyrk is this redirect_uri or redirect_url?
5656
redirectURL := p.URL(vals, callbackURL, "redirect_uri")
5757
responseType := p.String(vals, "", "response_type")
58+
// TODO: Redirected might exist but it should not cause validation errors.
59+
_ = p.String(vals, "", "redirected")
5860
p.ErrorExcessParams(vals)
5961
if len(p.Errors) > 0 {
6062
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{

0 commit comments

Comments
 (0)
0