Documentation ¶
Index ¶
- type OAuth2Config
- func (o *OAuth2Config) ExchangeCodeForToken(ctx context.Context, code string) (*oauth2.Token, error)
- func (o *OAuth2Config) ExchangeRefreshForToken(ctx context.Context, token *oauth2.Token) (*oauth2.Token, error)
- func (o *OAuth2Config) GenerateAuthCodeURL(tokenString string, scopes []string, options []oauth2.AuthCodeOption) string
- func (o *OAuth2Config) GetTokenSource(ctx context.Context, token *oauth2.Token) oauth2.TokenSource
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth2Config ¶
OAuth2Config provides a mocked implementation of the OAuth2Config interface
func (*OAuth2Config) ExchangeCodeForToken ¶
func (o *OAuth2Config) ExchangeCodeForToken(ctx context.Context, code string) (*oauth2.Token, error)
ExchangeCodeForToken is a mocked stub
func (*OAuth2Config) ExchangeRefreshForToken ¶
func (o *OAuth2Config) ExchangeRefreshForToken(ctx context.Context, token *oauth2.Token) (*oauth2.Token, error)
ExchangeRefreshForToken is a mocked stub
func (*OAuth2Config) GenerateAuthCodeURL ¶
func (o *OAuth2Config) GenerateAuthCodeURL(tokenString string, scopes []string, options []oauth2.AuthCodeOption) string
GenerateAuthCodeURL is a mocked stub
func (*OAuth2Config) GetTokenSource ¶
func (o *OAuth2Config) GetTokenSource(ctx context.Context, token *oauth2.Token) oauth2.TokenSource
GetTokenSource is a mocked stub
Click to show internal directories.
Click to hide internal directories.