Versions in this module Expand all Collapse all v1 v1.0.2 Dec 23, 2020 Changes in this version + type AuthenticationConfig struct + Client *http.Client + ClientID *url.URL + RedirectURI *url.URL + func Authentication(clientID, redirectURI string) (*AuthenticationConfig, error) + func (c *AuthenticationConfig) Exchange(endpoints Endpoints, code string) (me string, err error) + func (c *AuthenticationConfig) RedirectURL(endpoints Endpoints, me, state string) string + type AuthorizationConfig struct + Client *http.Client + ClientID *url.URL + RedirectURI *url.URL + Scopes []string + func Authorization(clientID, redirectURI string, scopes []string) (*AuthorizationConfig, error) + func (c *AuthorizationConfig) Exchange(endpoints Endpoints, code, me string) (token Token, err error) + func (c *AuthorizationConfig) RedirectURL(endpoints Endpoints, me, state string) string + type Endpoints struct + Authorization *url.URL + Token *url.URL + func FindEndpoints(me string) (ends Endpoints, err error) + type Token struct + AccessToken string + Me string + Scopes []string + TokenType string + func (t Token) HasScope(scope string) bool Other modules containing this package hawx.me/code/indieauth/v2