The highest tagged major version is
v3 .
Discover Packages
github.com/gdarmont/go-oidc
example
directory
Version:
v2.2.1+incompatible
Opens a new window with list of versions in this module.
Published: Jan 27, 2020
License: Apache-2.0
Opens a new window with license information.
README
README
¶
Examples
These are example uses of the oidc package. Each requires a Google account and the client ID and secret of a registered OAuth2 application. To create one:
Visit your Google Developer Console .
Click "Credentials" on the left column.
Click the "Create credentials" button followed by "OAuth client ID".
Select "Web application" and add "http://127.0.0.1:5556/auth/google/callback" as an authorized redirect URI.
Click create and add the printed client ID and secret to your environment using the following variables:
GOOGLE_OAUTH2_CLIENT_ID
GOOGLE_OAUTH2_CLIENT_SECRET
Finally run the examples using the Go tool and navigate to http://127.0.0.1:5556 .
go run ./example/idtoken/app.go
Expand ▾
Collapse ▴
Directories
¶
This is an example application to demonstrate parsing an ID Token.
This is an example application to demonstrate parsing an ID Token.
This is an example application to demonstrate verifying an ID Token with a nonce.
This is an example application to demonstrate verifying an ID Token with a nonce.
This is an example application to demonstrate querying the user info endpoint.
This is an example application to demonstrate querying the user info endpoint.
Click to show internal directories.
Click to hide internal directories.