Documentation ¶
Index ¶
- Variables
- type Authenticator
- type MockAuthenticator
- func (_m *MockAuthenticator) AuthCodeURL(ctx contextx.Contextx, state string, opts ...oauth2.AuthCodeOption) string
- func (_m *MockAuthenticator) Claims(idToken *oidc.IDToken) (map[string]interface{}, error)
- func (_m *MockAuthenticator) Exchange(ctx contextx.Contextx, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
- func (_m *MockAuthenticator) VerifyIDToken(ctx contextx.Contextx, token *oauth2.Token) (*oidc.IDToken, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewOptions, NewImpl)
ProviderSet is a provider set for wire
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { AuthCodeURL(ctx contextx.Contextx, state string, opts ...oauth2.AuthCodeOption) string Exchange(ctx contextx.Contextx, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error) VerifyIDToken(ctx contextx.Contextx, token *oauth2.Token) (*oidc.IDToken, error) Claims(idToken *oidc.IDToken) (profile map[string]interface{}, err error) }
Authenticator declare authenticator functions
type MockAuthenticator ¶
MockAuthenticator is an autogenerated mock type for the Authenticator type
func NewMockAuthenticator ¶
func NewMockAuthenticator(t mockConstructorTestingTNewMockAuthenticator) *MockAuthenticator
NewMockAuthenticator creates a new instance of MockAuthenticator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockAuthenticator) AuthCodeURL ¶
func (_m *MockAuthenticator) AuthCodeURL(ctx contextx.Contextx, state string, opts ...oauth2.AuthCodeOption) string
AuthCodeURL provides a mock function with given fields: ctx, state, opts
func (*MockAuthenticator) Claims ¶
func (_m *MockAuthenticator) Claims(idToken *oidc.IDToken) (map[string]interface{}, error)
Claims provides a mock function with given fields: idToken
func (*MockAuthenticator) Exchange ¶
func (_m *MockAuthenticator) Exchange(ctx contextx.Contextx, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
Exchange provides a mock function with given fields: ctx, code, opts
func (*MockAuthenticator) VerifyIDToken ¶
func (_m *MockAuthenticator) VerifyIDToken(ctx contextx.Contextx, token *oauth2.Token) (*oidc.IDToken, error)
VerifyIDToken provides a mock function with given fields: ctx, token
Click to show internal directories.
Click to hide internal directories.