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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy