oauth2ext

module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: BSD-3-Clause

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.

Directories

Path Synopsis
cmd
o2ext-claimgen command
oidc-example-rp command
Package dpop provides utilities for working with DPoP JWTs, and sending/verifying them on requests.
Package dpop provides utilities for working with DPoP JWTs, and sending/verifying them on requests.
th
Package oauth2as is a library implementation of helpers for implementing the core OIDC specification (https://openid.net/specs/openid-connect-core-1_0.html).
Package oauth2as is a 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
tpmsecrets module

Jump to

Keyboard shortcuts

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