Skip to content

Commit

Permalink
use uaa_endpoint as auth_endpoint if auth_endpoint is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewghobrial committed Jun 8, 2019
1 parent 7d46894 commit 80149ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jetstream/plugins/cloudfoundryhosting/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (ch *CFHosting) Init() error {
// Override the configuration to set the authorization endpoint
url, err = url.Parse(newCNSI.TokenEndpoint)
if err != nil {
return fmt.Errorf("Invalid authorization endpoint URL %s %s", newCNSI.AuthorizationEndpoint, err)
return fmt.Errorf("Invalid token endpoint URL %s %s", newCNSI.TokenEndpoint, err)
}

ch.portalProxy.GetConfig().ConsoleConfig.UAAEndpoint = url
Expand Down
2 changes: 1 addition & 1 deletion src/jetstream/setup_console.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (p *portalProxy) initialiseConsoleConfig(consoleRepo console_config.Reposit
}
authEndpoint, found := p.Env().Lookup("AUTH_ENDPOINT")
if !found {
return consoleConfig, errors.New("AUTH_ENDPOINT not found")
authEndpoint = uaaEndpoint
}

consoleClient, found := p.Env().Lookup("CONSOLE_CLIENT")
Expand Down

0 comments on commit 80149ff

Please sign in to comment.