Skip to content

Commit

Permalink
cmd: token user should use clusterurl instead of empty string (#582)
Browse files Browse the repository at this point in the history
Closes #581
  • Loading branch information
arekkas authored Sep 25, 2017
1 parent 3a78859 commit 89d429e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/token_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ var tokenUserCmd = &cobra.Command{
clientSecret = c.ClientSecret
}
if backend == "" {
backend = pkg.JoinURLStrings(backend, "/oauth2/token")
backend = pkg.JoinURLStrings(c.ClusterURL, "/oauth2/token")
}
if frontend == "" {
frontend = pkg.JoinURLStrings(frontend, "/oauth2/auth")
frontend = pkg.JoinURLStrings(c.ClusterURL, "/oauth2/auth")
}

conf := oauth2.Config{
Expand Down

0 comments on commit 89d429e

Please sign in to comment.