Skip to content

Commit 8230eac

Browse files
authored
cmd: resolve issue with token user flow (#212)
1 parent 56d1e58 commit 8230eac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmd/token_user.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ var tokenUserCmd = &cobra.Command{
3737
TokenURL: pkg.JoinURLStrings(c.ClusterURL, "/oauth2/token"),
3838
AuthURL: pkg.JoinURLStrings(c.ClusterURL, "/oauth2/auth"),
3939
},
40+
RedirectURL: "http://localhost:4445/callback",
4041
Scopes: scopes,
4142
}
4243

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

5960
srv := &graceful.Server{
6061
Timeout: 2 * time.Second,
61-
Server: &http.Server{Addr: "localhost:4445"},
62+
Server: &http.Server{Addr: ":4445"},
6263
}
6364
r := httprouter.New()
6465
r.GET("/callback", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
- rethinkdb:database
1313
ports:
1414
- "4444:4444"
15+
- "4445:4445"
1516
environment:
1617
- SYSTEM_SECRET=${SYSTEM_SECRET}
1718
- CONSENT_URL=http://${DOCKER_IP}:3000

0 commit comments

Comments
 (0)