oidcvalidate

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidAudience

func IsValidAudience(aud string) bool

IsValidAudience validates an audience identifier according to OpenID Connect Core 1.0: - Must not be empty (audience is REQUIRED) - Should be a URI or an arbitrary string that uniquely identifies the audience - Case sensitive string comparison - Maximum length of 255 characters for security - Must not contain control characters or injection-prone characters

func IsValidIssuer

func IsValidIssuer(iss string) bool

IsValidIssuer validates an OIDC issuer according to RFC 8414 and OpenID Connect Core 1.0: - Must use HTTPS scheme (except localhost for testing) - Must be a valid URL without query string or fragment - Must not end with a slash - Must have a valid hostname - Length constraints for security

func IsValidSubject

func IsValidSubject(sub string) bool

IsValidSubject validates a subject identifier according to OpenID Connect Core 1.0: - Must not be empty (REQUIRED) - Must be a string with maximum length of 255 ASCII characters - Must not contain whitespace or control characters - Case sensitive string comparison

Types

This section is empty.

Jump to

Keyboard shortcuts

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