From e7d57bb31bc690c893e50f40368dcf58d64a5f8a Mon Sep 17 00:00:00 2001 From: Wyatt Alt Date: Tue, 5 Dec 2017 13:34:19 -0800 Subject: [PATCH] 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 --- Documentation/using-dex.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/using-dex.md b/Documentation/using-dex.md index e9a7e6e7..2d76df61 100644 --- a/Documentation/using-dex.md +++ b/Documentation/using-dex.md @@ -75,7 +75,7 @@ oauth2Config := oauth2.Config{ } // 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. @@ -149,7 +149,7 @@ if err != nil { // handle error } // 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: