examples/

directory
v0.0.0-...-11f6293 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2016 License: Apache-2.0

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. The client ID and secret should be set as the following environment variables:

GOOGLE_OAUTH2_CLIENT_ID
GOOGLE_OAUTH2_CLIENT_SECRET

See Google's documentation on how to set up an OAuth2 app: https://developers.google.com/identity/protocols/OpenIDConnect?hl=en

Note that one of the redirect URL's must be "http://127.0.0.1:5556/auth/google/callback"

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL