Documentation ¶
Index ¶
- func NextSlug() string
- func ProcessResponse(ar oauth2.AuthorizationResponse) error
- func Save(client Client) error
- type Client
- func (c Client) ExchangeCode(code, redirectUri, codeVerifier string) (oauth2.AccessTokenResponse, error)
- func (c Client) GetClientId() string
- func (c Client) GetRedirectUris() []string
- func (c Client) GetSecret() (string, error)
- func (c Client) GetServer() (server.Server, error)
- func (c Client) SetSecret(secret string) error
- type Clients
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessResponse ¶
func ProcessResponse(ar oauth2.AuthorizationResponse) error
Types ¶
type Client ¶
type Client struct { Slug string ServerSlug string `yaml:"server_slug"` CreatedAt time.Time `yaml:"created_at"` Id string SecretHandle string `yaml:"secret_handle"` RedirectURIs []string `yaml:"redirect_uris"` }
func FindBySlug ¶
func (Client) ExchangeCode ¶
func (c Client) ExchangeCode(code, redirectUri, codeVerifier string) (oauth2.AccessTokenResponse, error)
func (Client) GetClientId ¶
func (Client) GetRedirectUris ¶
Click to show internal directories.
Click to hide internal directories.