We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ef5a75 + 3faac62 commit c7931aaCopy full SHA for c7931aa
1 file changed
pkg/http/server.go
@@ -126,7 +126,9 @@ func RunHTTPServer(cfg ServerConfig) error {
126
oauthCfg := &oauth.Config{
127
BaseURL: cfg.BaseURL,
128
ResourcePath: cfg.ResourcePath,
129
- AuthorizationServer: cfg.Host + "login/oauth",
+ }
130
+ if cfg.Host != "" {
131
+ oauthCfg.AuthorizationServer = cfg.Host + "login/oauth"
132
}
133
134
serverOptions := []HandlerOption{}
0 commit comments