Skip to content

Commit

Permalink
cmd: resolve issue with token user flow (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored Aug 18, 2016
1 parent 56d1e58 commit 8230eac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/token_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var tokenUserCmd = &cobra.Command{
TokenURL: pkg.JoinURLStrings(c.ClusterURL, "/oauth2/token"),
AuthURL: pkg.JoinURLStrings(c.ClusterURL, "/oauth2/auth"),
},
RedirectURL: "http://localhost:4445/callback",
Scopes: scopes,
}

Expand All @@ -58,7 +59,7 @@ var tokenUserCmd = &cobra.Command{

srv := &graceful.Server{
Timeout: 2 * time.Second,
Server: &http.Server{Addr: "localhost:4445"},
Server: &http.Server{Addr: ":4445"},
}
r := httprouter.New()
r.GET("/callback", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- rethinkdb:database
ports:
- "4444:4444"
- "4445:4445"
environment:
- SYSTEM_SECRET=${SYSTEM_SECRET}
- CONSENT_URL=http://${DOCKER_IP}:3000
Expand Down

0 comments on commit 8230eac

Please sign in to comment.