Merge pull request #1505 from MarcDufresne/show-login-page

Add option to always display connector selection even if there's only one
This commit is contained in:
Stephan Renatus
2019-08-07 09:23:42 +02:00
committed by GitHub
5 changed files with 17 additions and 1 deletions

View File

@@ -249,7 +249,7 @@ func (s *Server) handleAuthorization(w http.ResponseWriter, r *http.Request) {
return
}
if len(connectors) == 1 {
if len(connectors) == 1 && !s.alwaysShowLogin {
for _, c := range connectors {
// TODO(ericchiang): Make this pass on r.URL.RawQuery and let something latter
// on create the auth request.