Versions in this module Expand all Collapse all v0 v0.1.0 Sep 3, 2015 Changes in this version + const AuthMethodClientSecretBasic + const AuthMethodClientSecretJWT + const AuthMethodClientSecretPost + const AuthMethodPrivateKeyJWT + const ErrorAccessDenied + const ErrorInvalidClient + const ErrorInvalidGrant + const ErrorInvalidRequest + const ErrorServerError + const ErrorUnauthorizedClient + const ErrorUnsupportedGrantType + const ErrorUnsupportedResponseType + const GrantTypeAuthCode + const GrantTypeClientCreds + const GrantTypeImplicit + const GrantTypeRefreshToken + const ResponseTypeCode + type AuthCodeRequest struct + ClientID string + RedirectURL *url.URL + ResponseType string + Scope []string + State string + func ParseAuthCodeRequest(q url.Values) (AuthCodeRequest, error) + type Client struct + func NewClient(hc phttp.Client, cfg Config) (c *Client, err error) + func (c *Client) AuthCodeURL(state, accessType, prompt string) string + func (c *Client) ClientCredsToken(scope []string) (result TokenResponse, err error) + func (c *Client) RequestToken(grantType, value string) (result TokenResponse, err error) + type ClientCredentials struct + ID string + Secret string + type Config struct + AuthMethod string + AuthURL string + Credentials ClientCredentials + RedirectURL string + Scope []string + TokenURL string + type Error struct + State string + Type string + func NewError(typ string) *Error + func (e *Error) Error() string + type TokenResponse struct + AccessToken string + Expires int + IDToken string + RawBody []byte + RefreshToken string + Scope string + TokenType string