provider

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoveryURL added in v1.2.0

func DiscoveryURL(issuer string) (string, error)

DiscoveryURL returns the OIDC discovery URL for the given issuer (/.well-known/openid-configuration). The issuer is normalized before building the path.

func InferOAuth2IntrospectionConfig

func InferOAuth2IntrospectionConfig(spec api.OAuth2ProviderSpec) (*api.OAuth2Introspection, error)

InferOAuth2IntrospectionConfig attempts to infer a sensible introspection configuration based on the OAuth2 provider URLs. Returns an error if no introspection can be inferred.

func NormalizeIssuerURL added in v1.2.0

func NormalizeIssuerURL(issuer string) (string, error)

NormalizeIssuerURL parses an issuer URL and returns a canonical form (no trailing slash on path). Requires scheme and host. Used so discovery, token verification, and cache keys share one form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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