Skip to content

Commit 3517dcf

Browse files
committed
improvements
1 parent 4491255 commit 3517dcf

File tree

7 files changed

+8
-25
lines changed

7 files changed

+8
-25
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.0.2
2+
current_version = 0.0.3
33
commit = False
44
tag = False
55

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version := "0.0.2"
1+
version := "0.0.3"
22

33
.DEFAULT_GOAL := help
44

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ An oauth2 protected [graphQL playground](https://github.com/graphql/graphql-play
2020

2121
### Binary Release
2222

23-
Please see [releases](https://github.com/autom8ter/oauth-graphql-playground/releases/tag/v0.0.2) to download and add the program to your path directly
23+
Please see [releases](https://github.com/autom8ter/oauth-graphql-playground/releases/tag/v0.0.3) to download and add the program to your path directly
2424

2525
#### Using Containers
2626

27-
- Docker: `docker pull colemanword:oauth-graphql-playground:v0.0.2`
27+
- Docker: `docker pull colemanword:oauth-graphql-playground:v0.0.3`
2828

2929
- [sample k8s manifest](k8s.yaml)
3030

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.7'
22
services:
33
oauth-graphql-playground:
4-
image: colemanword/oauth-graphql-playground:v0.0.2
4+
image: colemanword/oauth-graphql-playground:v0.0.3
55
env_file:
66
- ./.env
77
ports:

internal/playground/playground.go

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,25 +83,8 @@ func (p *Playground) Playground() http.HandlerFunc {
8383
}
8484
return
8585
}
86-
token, err := p.session.GetToken(req)
87-
if err != nil {
88-
p.logger.Error("playground: failed to get token - redirecting", zap.Error(err))
89-
if err := p.session.RedirectLogin(w, req); err != nil {
90-
p.logger.Error("playground: failed to redirect", zap.Error(err))
91-
}
92-
return
93-
}
9486
w.Header().Add("Content-Type", "text/html")
95-
if p.useIDToken {
96-
playground.Execute(w, map[string]string{
97-
"token": token.IDToken,
98-
})
99-
} else {
100-
playground.Execute(w, map[string]string{
101-
"token": token.Token.AccessToken,
102-
})
103-
}
104-
87+
playground.Execute(w, map[string]string{})
10588
}
10689
}
10790

internal/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package version
22

3-
const Version = "0.0.2"
3+
const Version = "0.0.3"

k8s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
valueFrom:
7070
fieldRef:
7171
fieldPath: status.podIP
72-
image: "colemanword/oauth-graphql-playground:v0.0.2"
72+
image: "colemanword/oauth-graphql-playground:v0.0.3"
7373
imagePullPolicy: Always
7474
ports:
7575
- containerPort: 5000

0 commit comments

Comments
 (0)