Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidValue = errors.New("invalid value")
ErrInvalidValue signals that an invalid value has been provided
var ErrNilAuthServer = errors.New("nil auth server")
ErrNilAuthServer signals that a nil auth server has been provided
Functions ¶
func NewMaxTTLAuthServer ¶
func NewMaxTTLAuthServer(args ArgsMaxTTLAuthServer) (*maxTTLAuthServer, error)
NewMaxTTLAuthServer returns an auth server which caps the tokens' ttl to the configured max ttl
Types ¶
type ArgsMaxTTLAuthServer ¶
type ArgsMaxTTLAuthServer struct {
AuthServer authentication.AuthServer
HttpClientWrapper authentication.HttpClientWrapper
TimestampsCacher TimestampsCacher
MaxTTLInSec int64
}
ArgsMaxTTLAuthServer is the DTO used to create a new instance of maxTTLAuthServer