Skip to content

Commit 77ba650

Browse files
committed
Update settings for the demo application
1 parent 00fed2b commit 77ba650

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

example/main.go

+7-8
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ import (
1616
)
1717

1818
var (
19-
//clientID = "5c7fd8c50dd75d000162c69f"
20-
clientID = "5c935c8e02429c5c98920f2c"
21-
//clientSecret = "TVzu97mMqsn4bRQbgS07MdIuf3TMgZHEm0fjKWWP5DvzppyTtXA8sgQtqazr91zq"
22-
clientSecret = "BxupC6l655Y3gnFQxfxME4IvLvDpKYwbfRp9ri07zxnPzFaLraCgvLkrzh0618Rt"
19+
clientID = "5c7fd8c50dd75d000162c69f"
20+
clientSecret = "TVzu97mMqsn4bRQbgS07MdIuf3TMgZHEm0fjKWWP5DvzppyTtXA8sgQtqazr91zq"
2321
scopes = []string{"openid", "offline"}
24-
redirectURL = "http://localhost:1323/auth/callback"
22+
responseType = "code"
23+
redirectUri = "http://127.0.0.1:1323/auth/callback"
2524
logoutRedirectUri = "http://127.0.0.1:1323/logout_result"
26-
authDomain = "http://127.0.0.1:8080"
25+
authDomain = "https://dev-auth1.tst.protocol.one"
2726
jwtv *jwtverifier.JwtVerifier
2827
)
2928

@@ -71,7 +70,7 @@ func main() {
7170
ClientID: clientID,
7271
ClientSecret: clientSecret,
7372
Scopes: scopes,
74-
RedirectURL: redirectURL,
73+
RedirectURL: redirectUri,
7574
Issuer: authDomain,
7675
}
7776
jwtv = jwtverifier.NewJwtVerifier(settings)
@@ -118,7 +117,7 @@ func index(c echo.Context) error {
118117
return c.Render(http.StatusOK, "index.html", map[string]interface{}{
119118
"AuthDomain": authDomain,
120119
"ClientID": clientID,
121-
"RedirectUri": redirectURL,
120+
"RedirectUri": redirectUri,
122121
"LogoutRedirectUri": logoutRedirectUri,
123122
"IsAuthenticate": isAuthenticate,
124123
})

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require (
44
github.com/dgrijalva/jwt-go v3.2.0+incompatible
55
github.com/go-redis/redis v6.15.1+incompatible
66
github.com/hashicorp/golang-lru v0.5.1
7-
github.com/labstack/echo/v4 v4.0.0 // indirect
7+
github.com/labstack/echo/v4 v4.0.0
88
github.com/labstack/gommon v0.2.8
99
github.com/lestrrat-go/jwx v0.0.0-20180928232350-0d477e6a1f0e
1010
github.com/lestrrat-go/pdebug v0.0.0-20180220043849-39f9a71bcabe // indirect

0 commit comments

Comments
 (0)