Versions in this module Expand all Collapse all v0 v0.2.1 Oct 7, 2014 Changes in this version + const ErrorCodeInvalidClient + const ErrorCodeInvalidGrant + const ErrorCodeInvalidRequest + const ErrorCodeInvalidScope + const ErrorCodeUnauthorizedClient + const ErrorCodeUnsupportedGrantType + const GrantTypeAuthorizationCode + const GrantTypeClientCredentials + const GrantTypePassword + const GrantTypeRefreshToken + const OOB + const ResponseTypeCode + const ResponseTypeToken + const TokenBearer + const TokenMac + type Client struct + AccessTokenURL string + AuthorizationURL string + ClientId string + ClientSecret string + RedirectURL string + func (c *Client) AuthorizeRedirect(scope, state string) string + func (c *Client) GrantToken(code string) (*Token, error) + func (c *Client) GrantTokenCredentials(scope string) (*Token, error) + func (c *Client) GrantTokenPassword(username, password, scope string) (*Token, error) + func (c *Client) RefreshToken(refreshToken string) (*Token, error) + type Error struct + Code string + Description string + URI string + func (e Error) Error() string + type Token struct + AccessToken string + ExpiresIn int64 + RefreshToken string + Scope string + TokenType string + func (t Token) Token() string