Skip to content

Commit 3c46c54

Browse files
authored
Merge pull request #22 from simo5/skipbutton
Fix handling of redirect URI with --skip-provider-button
2 parents 3fe1716 + 119a03c commit 3c46c54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

oauthproxy.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,11 @@ func (p *OAuthProxy) ManualSignIn(rw http.ResponseWriter, req *http.Request) (st
460460
}
461461

462462
func (p *OAuthProxy) GetRedirect(req *http.Request) (redirect string, err error) {
463+
if p.SkipProviderButton {
464+
redirect = req.RequestURI
465+
return
466+
}
467+
463468
err = req.ParseForm()
464469
if err != nil {
465470
return

0 commit comments

Comments
 (0)