Documentation
¶
Overview ¶
Package googleoauth implements Google's provider-owned OAuth2 protocol boundary.
Index ¶
- Variables
- type AuthorizationURLParams
- type Client
- func (c *Client) AuthorizationURL(ctx context.Context, params AuthorizationURLParams) (string, error)
- func (c *Client) ExchangeCode(ctx context.Context, code string, requiredScopes []string) (TokenSet, error)
- func (c *Client) Refresh(ctx context.Context, refreshToken string, ...) (TokenSet, error)
- func (c *Client) Revoke(ctx context.Context, token string) error
- type Config
- type TokenSet
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidGrant = xerror.New(xerror.KindInvalidInput, "GOOGLE_INVALID_GRANT", "Google OAuth invalid grant")
Functions ¶
This section is empty.
Types ¶
type AuthorizationURLParams ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AuthorizationURL ¶
func (*Client) ExchangeCode ¶
Click to show internal directories.
Click to hide internal directories.