Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSecretStore = &homeStore{}
DefaultSecretStore provides a default SecretStore.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Creds Credentials // contains filtered or unexported fields }
Client defines auth client.
func (*Client) GenCorrelation ¶
GenCorrelation creates correlation id.
func (*Client) PublicKeys ¶
func (c *Client) PublicKeys(publicKey string) (int, ResponsePublicKey, error)
PublicKeys sends client public key.
type Config ¶
type Config struct { Host string Store SecretStore }
Config defines auth client config.
type Credentials ¶
type Credentials struct { ClientID string `yaml:"clientId"` ClientSecret string `yaml:"clientSecret"` }
Credentials for client.
type ResponsePublicKey ¶
type ResponsePublicKey struct { Kid string `json:"kid"` ClientSecret string `json:"clientSecret"` Expires int64 `json:"expires"` // milliseconds since January 1, 1970, 00:00:00 GMT }
ResponsePublicKey is result from PublicKeys.
type ResponseTokens ¶
type ResponseTokens struct { Token string `json:"token"` Scope string `json:"scope"` Expires int `json:"expires"` // seconds since January 1, 1970, 00:00:00 GMT }
ResponseTokens is response for Tokens.
Click to show internal directories.
Click to hide internal directories.