Documentation ¶
Index ¶
- type BodyToken
- type Client
- func (client *Client) CreateAuthURL(username, state, action, ip, ua string) (string, error)
- func (client *Client) GenerateState() (string, error)
- func (client *Client) GenerateStateWithLength(length int) (string, error)
- func (client *Client) GetTokenResponse(code string, username string) (*TokenResponse, error)
- func (client *Client) HealthCheck(username, action, ip, ua string) (*HealthCheckResponse, error)
- type HealthCheckResponse
- type MapClaims
- type ResponseMessage
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateAuthURL ¶
func (*Client) GenerateState ¶
Return a cryptographically-secure string of random characters with the default length
func (*Client) GenerateStateWithLength ¶
Return a cryptographically-secure string of random characters suitable for use in state values. length is the number of characters in the randomly generated string
func (*Client) GetTokenResponse ¶
func (client *Client) GetTokenResponse(code string, username string) (*TokenResponse, error)
func (*Client) HealthCheck ¶
func (client *Client) HealthCheck(username, action, ip, ua string) (*HealthCheckResponse, error)
type HealthCheckResponse ¶
type ResponseMessage ¶
Click to show internal directories.
Click to hide internal directories.