Versions in this module Expand all Collapse all v0 v0.8.0 Jun 30, 2023 Changes in this version + const UserIDWildcard + var ErrFailedRequest = errors.New("request failed") + var ErrInvalidConfig = errors.New("invalid client config") + var ErrUnknownProviderType = errors.New("unknown provider type") + func NewManager(crypto domain.Crypto, validator *validator.Validate) *manager + func NewShieldClient(config *ShieldClientConfig) (*shieldClient, error) + type HTTPAuthConfig struct + Audience string + CredentialsJSON string + In string + Key string + Password string + Token string + Type string + Username string + Value string + type HTTPClient struct + func NewHTTPClient(config *HTTPClientConfig) (*HTTPClient, error) + func (c *HTTPClient) GetUser(userID string) (interface{}, error) + type HTTPClientConfig struct + Auth *HTTPAuthConfig + HTTPClient *http.Client + Headers map[string]string + URL string + func (c *HTTPClientConfig) Decrypt() error + func (c *HTTPClientConfig) Encrypt() error + func (c *HTTPClientConfig) Validate() error + type ShieldClientConfig struct + Host string + func (c *ShieldClientConfig) Decrypt() error + func (c *ShieldClientConfig) Encrypt() error + func (c *ShieldClientConfig) Validate() error