Skip to content
Merged
3 changes: 3 additions & 0 deletions pkg/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ func RunHTTPServer(cfg ServerConfig) error {
BaseURL: cfg.BaseURL,
ResourcePath: cfg.ResourcePath,
}
if cfg.Host != "" {
oauthCfg.AuthorizationServer = cfg.Host + "login/oauth"
}

serverOptions := []HandlerOption{}
if cfg.ScopeChallenge {
Expand Down
Loading