auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultJWTClaimsLeeway is a common default for JWT claims leeway.
	// Leeway is defined by https://godoc.org/gopkg.in/square/go-jose.v2/jwt#Claims.ValidateWithLeeway.
	DefaultJWTClaimsLeeway = time.Second * 60
	// DefaultMaximumJWTNotExpiredPeriod is a common default for the maximum allowed period that a JWT is not expired.
	DefaultMaximumJWTNotExpiredPeriod = time.Minute * 60
)

Variables

This section is empty.

Functions

func ParseCertificate

func ParseCertificate(pemString string) (*x509.Certificate, error)

ParseCertificate parses a single X509 certificate from the PEM-encoded data. If the data has multiple X509 certificates then an error is returned.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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