Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
5172a461
Unverified
Commit
5172a461
authored
Dec 05, 2017
by
Eric Chiang
Committed by
GitHub
Dec 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1143 from wkalt/fix-verifier-creation-typo
Correct "Verifier" method name in using-dex doc
parents
18da6288
e7d57bb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
using-dex.md
Documentation/using-dex.md
+2
-2
No files found.
Documentation/using-dex.md
View file @
5172a461
...
...
@@ -75,7 +75,7 @@ oauth2Config := oauth2.Config{
}
// Create an ID token parser.
idTokenVerifier
:=
provider
.
New
Verifier
(
&
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
.
New
Verifier
(
&
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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment