Skip to content

Commit 3183e2d

Browse files
committed
Update example and README.md
Signed-off-by: junya koyama <[email protected]>
1 parent e3a45fb commit 3183e2d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ oauth2Config := oauth2.Config{
3939
Endpoint: provider.Endpoint(),
4040

4141
// "openid" is a required scope for OpenID Connect flows.
42-
Scopes: []string{oidc.ScopeOpenID, "profile", "email"},
42+
Scopes: []string{oidc.ScopeOpenID, oidc.ScopeProfile, oidc.ScopeEmail},
4343
}
4444
```
4545

example/idtoken/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func main() {
5959
ClientSecret: clientSecret,
6060
Endpoint: provider.Endpoint(),
6161
RedirectURL: "http://127.0.0.1:5556/auth/google/callback",
62-
Scopes: []string{oidc.ScopeOpenID, "profile", "email"},
62+
Scopes: []string{oidc.ScopeOpenID, oidc.ScopeProfile, oidc.ScopeEmail},
6363
}
6464

6565
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {

example/userinfo/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func main() {
5454
ClientSecret: clientSecret,
5555
Endpoint: provider.Endpoint(),
5656
RedirectURL: "http://127.0.0.1:5556/auth/google/callback",
57-
Scopes: []string{oidc.ScopeOpenID, "profile", "email"},
57+
Scopes: []string{oidc.ScopeOpenID, oidc.ScopeProfile, oidc.ScopeEmail},
5858
}
5959

6060
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)