Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Fix handling of redirect URI with --skip-provider-button #395

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 5 additions & 0 deletions oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@ func (p *OAuthProxy) ManualSignIn(rw http.ResponseWriter, req *http.Request) (st
}

func (p *OAuthProxy) GetRedirect(req *http.Request) (redirect string, err error) {
if p.SkipProviderButton {
redirect = req.RequestURI
return
}

err = req.ParseForm()
if err != nil {
return
Expand Down