Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadUaaResponse

type BadUaaResponse struct {
	StatusCode      int
	UaaResponseBody string
}

func (BadUaaResponse) Error

func (r BadUaaResponse) Error() string

type CheckTokenResponse

type CheckTokenResponse struct {
	Scope    []string `json:"scope"`
	UserID   string   `json:"user_id"`
	UserName string   `json:"user_name"`
}

type Client

type Client struct {
	BaseURL    string
	Name       string
	Secret     string
	HTTPClient httpClient
	Logger     lager.Logger
}

func (*Client) CheckToken

func (c *Client) CheckToken(token string) (CheckTokenResponse, error)

func (*Client) GetToken

func (c *Client) GetToken() (string, error)

Source Files

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.