Documentation ¶
Overview ¶
Package client provides a client library for JVS
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JVSClient ¶
type JVSClient struct {
// contains filtered or unexported fields
}
JVSClient allows for getting JWK keys from the JVS and validating JWTs with those keys.
func NewJVSClient ¶
NewJVSClient returns a JVSClient with the cache initialized.
type JVSConfig ¶
type JVSConfig struct { // Version is the version of the config. Version string `yaml:"version,omitempty" env:"VERSION,overwrite,default=1"` // JWKSEndpoint is the full path (including protocol and port) to the JWKS // endpoint on a JVS server (e.g. https://jvs.corp:8080/.well-known/jwks). JWKSEndpoint string `yaml:"endpoint,omitempty" env:"ENDPOINT,overwrite"` // CacheTimeout is the duration that keys stay in cache before being revoked. CacheTimeout time.Duration `yaml:"cache_timeout" env:"CACHE_TIMEOUT,overwrite,default=5m"` // AllowBreakglass represents whether the jvs client allows breakglass. AllowBreakglass bool `yaml:"allow_breakglass" env:"ALLOW_BREAKGLASS,overwrite,default=false"` }
JVSConfig is the jvs client configuration.
func LoadJVSConfig ¶
LoadJVSConfig calls the necessary methods to load in config using the OsLookuper which finds env variables specified on the host.
Click to show internal directories.
Click to hide internal directories.