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 ¶
FromEnvVars loads configuration parameters from environment variables. If there is no such variable defined, then use default values.
Click to show internal directories.
Click to hide internal directories.