Skip to content
Snippets Groups Projects
Commit e7d57bb3 authored by Wyatt Alt's avatar Wyatt Alt
Browse files

Correct "Verifier" method name in using-dex doc

Change provider.NewVerifier to provider.Verifier per the godocs:
https://godoc.org/github.com/coreos/go-oidc#Provider.Verifier
parent 18da6288
Branches
Tags
No related merge requests found
...@@ -75,7 +75,7 @@ oauth2Config := oauth2.Config{ ...@@ -75,7 +75,7 @@ oauth2Config := oauth2.Config{
} }
// Create an ID token parser. // Create an ID token parser.
idTokenVerifier := provider.NewVerifier(&oidc.Config{ClientID: "example-app"}) idTokenVerifier := provider.Verifier(&oidc.Config{ClientID: "example-app"})
``` ```
The HTTP server should then redirect unauthenticated users to dex to initialize the OAuth2 flow. The HTTP server should then redirect unauthenticated users to dex to initialize the OAuth2 flow.
...@@ -149,7 +149,7 @@ if err != nil { ...@@ -149,7 +149,7 @@ if err != nil {
// handle error // handle error
} }
// Create an ID token parser, but only trust ID tokens issued to "example-app" // Create an ID token parser, but only trust ID tokens issued to "example-app"
idTokenVerifier := provider.NewVerifier(&oidc.Config{ClientID: "example-app"}) idTokenVerifier := provider.Verifier(&oidc.Config{ClientID: "example-app"})
``` ```
The verifier can then be used to pull user info out of tokens: The verifier can then be used to pull user info out of tokens:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment