config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// default port for the http server to run
	DefaultIssuerPort = "9998"

	// DefaultSigningAlgorithms is the default set of JWS signing algorithms.
	// RS256 is always included for OIDC spec compliance.
	DefaultSigningAlgorithms = "RS256,RS384,RS512,EdDSA,SGD_SM3_SM2,SGD_SM3_SM9"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port              string
	RedirectURI       []string
	UsersFile         string
	Issuer            string
	SigningAlgorithms []string // JWS signing algorithms to enable (e.g. RS256, SGD_SM3_SM2)
	CryptoMethod      string   // token encryption method: "aes" (default) or "sm4"
}

func FromEnvVars

func FromEnvVars(defaults *Config) *Config

FromEnvVars loads configuration parameters from environment variables. If there is no such variable defined, then use default values.

Jump to

Keyboard shortcuts

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