oauth2ext

module
v1.0.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: BSD-3-Clause

README

oauth2ext

Go Reference

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

  • oidc Provides the ability to discover information from an OIDC issuer, and handle tokens that contain OIDC ID Tokens
  • jwt Verification for OIDC ID and OAuth2 JWT Access tokens, as well as standard claim types.
  • 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
  • cmd/oidcli A CLI tool that uses the clitoken package to retrieve ID/Access tokens, and return them or information about them.

Directories

Path Synopsis
cmd
oidc-example-rp command
oidccli command
keychain
Package keychain provides a Go wrapper for the macOS keychain.
Package keychain provides a Go wrapper for the macOS keychain.
th
Package oauth2as is an library implementation of helpers for implementing the core OIDC specification (https://openid.net/specs/openid-connect-core-1_0.html).
Package oauth2as is an library implementation of helpers for implementing the core OIDC specification (https://openid.net/specs/openid-connect-core-1_0.html).
internal/oauth2
Package oauth2 implements base primitives for parsing a subset of oauth2 messages and errors
Package oauth2 implements base primitives for parsing a subset of oauth2 messages and errors
Package oidc implements an OIDC client library
Package oidc implements an OIDC client library

Jump to

Keyboard shortcuts

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