Documentation
¶
Index ¶
- type AccessTokenVerifier
- type OAuth2Config
- func (_m *OAuth2Config) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
- func (_m *OAuth2Config) Client(ctx context.Context, t *oauth2.Token) *http.Client
- func (_m *OAuth2Config) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
- func (_m *OAuth2Config) PasswordCredentialsToken(ctx context.Context, username string, password string) (*oauth2.Token, error)
- func (_m *OAuth2Config) TokenSource(ctx context.Context, t *oauth2.Token) oauth2.TokenSource
- type UserResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenVerifier ¶
AccessTokenVerifier is an autogenerated mock type for the AccessTokenVerifier type
func (*AccessTokenVerifier) Verify ¶
func (_m *AccessTokenVerifier) Verify(accessToken string) (*authentication.UserProfile, error)
Verify provides a mock function with given fields: accessToken
type OAuth2Config ¶
OAuth2Config is an autogenerated mock type for the OAuth2Config type
func (*OAuth2Config) AuthCodeURL ¶
func (_m *OAuth2Config) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
AuthCodeURL provides a mock function with given fields: state, opts
func (*OAuth2Config) Exchange ¶
func (_m *OAuth2Config) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
Exchange provides a mock function with given fields: ctx, code, opts
func (*OAuth2Config) PasswordCredentialsToken ¶
func (_m *OAuth2Config) PasswordCredentialsToken(ctx context.Context, username string, password string) (*oauth2.Token, error)
PasswordCredentialsToken provides a mock function with given fields: ctx, username, password
func (*OAuth2Config) TokenSource ¶
func (_m *OAuth2Config) TokenSource(ctx context.Context, t *oauth2.Token) oauth2.TokenSource
TokenSource provides a mock function with given fields: ctx, t
type UserResolver ¶
UserResolver is an autogenerated mock type for the UserResolver type
func NewUserResolver ¶
func NewUserResolver(t mockConstructorTestingTNewUserResolver) *UserResolver
NewUserResolver creates a new instance of UserResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.