utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAuthCertsPathRequired = fmt.Errorf("authentication certificates path is required")

Functions

func Capitalize

func Capitalize(s string) string

Capitalize returns a capitalized string.

func LoadJwtCerts

func LoadJwtCerts() error

LoadJwtCerts loads the JWT certificates required for authentication from the specified paths. It expects paths to the X.509 certificate (certPath) and private key (keyPath) in the configuration. The loaded keypair is used for signing JWT tokens, and the public key is used for token verification. If the certificate or key cannot be loaded or parsed, an error is returned. The loaded keys are set in the configuration for later use in JWT signing and parsing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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