Skip to content

Commit

Permalink
chore: Run dex reverse proxy only when dex is configured (argoproj#7999)
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Kilchhofer <[email protected]>
  • Loading branch information
mkilchhofer authored Jan 15, 2022
1 parent 2072d1a commit 303cc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ func (a *ArgoCDServer) newHTTPServer(ctx context.Context, port int, grpcWebHandl

// registerDexHandlers will register dex HTTP handlers, creating the the OAuth client app
func (a *ArgoCDServer) registerDexHandlers(mux *http.ServeMux) {
if !a.settings.IsSSOConfigured() {
if !a.settings.IsDexConfigured() {
return
}
// Run dex OpenID Connect Identity Provider behind a reverse proxy (served at /api/dex)
Expand Down

0 comments on commit 303cc46

Please sign in to comment.