oidcdiscovery

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package oidcdiscovery implements the issuer side of OpenID Connect Discovery for actor JWTs.

Index

Constants

View Source
const JWKSPath = "/openid/v1/jwks"

JWKSPath is the path of the key set, relative to the issuer.

Variables

This section is empty.

Functions

func DiscoveryDocument added in v0.4.0

func DiscoveryDocument(issuer string, algorithms []string) ([]byte, error)

DiscoveryDocument returns the JSON served at <issuer>/.well-known/openid-configuration. The issuer is copied verbatim and the document advertises each distinct algorithm in algorithms.

func JWKSURI added in v0.4.0

func JWKSURI(issuer string) string

JWKSURI returns the URL of issuer's key set.

func ValidateIssuer

func ValidateIssuer(issuer string) error

ValidateIssuer returns an error unless issuer is usable as an OpenID issuer identifier: an https URL with a host and no user info, query, or fragment. A path is allowed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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