provider

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MaximumResponseSize = 100 * 1024 // 100KiB

MaximumResponseSize is the maximum size of allowed responses from OIDC providers. Some anecdata

  • Google: needs around 1KiB
  • GitHub: needs around 5KiB
  • Chainguard: needs around 2KiB

Variables

This section is empty.

Functions

func AddTestKeySetVerifier added in v0.5.0

func AddTestKeySetVerifier(_ *testing.T, issuer string, keySet oidc.KeySet)

AddTestKeySetVerifier adds a test key set verifier to the provider cachef or the issuer. This is primarily intended for testing - the static key set is not verified against the upstream issuer.

Types

type VerifierProvider added in v0.5.0

type VerifierProvider interface {
	Verifier(config *oidc.Config) *oidc.IDTokenVerifier
}

func Get

func Get(ctx context.Context, issuer string) (provider VerifierProvider, err error)

Jump to

Keyboard shortcuts

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