lstoll/oauth2ext

★ 2Forks 0GoGitHub ↗Compare

README

oauth2ext

Go Reference

Module that provides extensions for to the x/oauth2 package, including OpenID connect (OIDC) usage.

  • provider Provides the ability to discover information from an OIDC/OAuth2 issuer, and handle tokens that contain OIDC ID Tokens
  • clitoken Implements the three-legged OIDC flow for local/CLI applications, with a dynamic server on the loopback to handle the callback
  • oidcmiddleware Provides a HTTP middleware to secure a path against an OIDC issuer
  • tokencache Provides a mechanism for caching and refreshing tokens.

Examples:

  • cmd/oidc-example-rp An example of a webapp that authenticates via OIDC
  • oidcli A CLI tool that uses the clitoken package to retrieve ID/Access tokens, and return them or information about them.

Contributors

lstolllstoll-sfdcalindemankarlhungusdependabot[bot]vansteett

Issues