Documentation ¶
Index ¶
- type OAuthClient
- func (_m *OAuthClient) GetToken(clientID string, clientSecret string, authURL string, ...) (string, apperrors.AppError)
- func (_m *OAuthClient) GetTokenMTLS(clientID string, authURL string, certificate []byte, privateKey []byte, ...) (string, apperrors.AppError)
- func (_m *OAuthClient) InvalidateTokenCache(clientID string, clientSecret string, authURL string)
- func (_m *OAuthClient) InvalidateTokenCacheMTLS(clientID string, authURL string, certificate []byte, privateKey []byte)
- type Strategy
- type StrategyFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthClient ¶
OAuthClient is an autogenerated mock type for the OAuthClient type
func NewOAuthClient ¶
func NewOAuthClient(t mockConstructorTestingTNewOAuthClient) *OAuthClient
NewOAuthClient creates a new instance of OAuthClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OAuthClient) GetToken ¶
func (_m *OAuthClient) GetToken(clientID string, clientSecret string, authURL string, headers *map[string][]string, queryParameters *map[string][]string, skipTLSVerification bool) (string, apperrors.AppError)
GetToken provides a mock function with given fields: clientID, clientSecret, authURL, headers, queryParameters, skipTLSVerification
func (*OAuthClient) GetTokenMTLS ¶
func (_m *OAuthClient) GetTokenMTLS(clientID string, authURL string, certificate []byte, privateKey []byte, headers *map[string][]string, queryParameters *map[string][]string, skipVerify bool) (string, apperrors.AppError)
GetTokenMTLS provides a mock function with given fields: clientID, authURL, certificate, privateKey, headers, queryParameters, skipVerify
func (*OAuthClient) InvalidateTokenCache ¶
func (_m *OAuthClient) InvalidateTokenCache(clientID string, clientSecret string, authURL string)
InvalidateTokenCache provides a mock function with given fields: clientID, clientSecret, authURL
func (*OAuthClient) InvalidateTokenCacheMTLS ¶
func (_m *OAuthClient) InvalidateTokenCacheMTLS(clientID string, authURL string, certificate []byte, privateKey []byte)
InvalidateTokenCacheMTLS provides a mock function with given fields: clientID, authURL, certificate, privateKey
type Strategy ¶
Strategy is an autogenerated mock type for the Strategy type
func NewStrategy ¶
func NewStrategy(t mockConstructorTestingTNewStrategy) *Strategy
NewStrategy creates a new instance of Strategy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Strategy) AddAuthorization ¶
func (_m *Strategy) AddAuthorization(r *http.Request, setter clientcert.SetClientCertificateFunc, skipTLSVerification bool) apperrors.AppError
AddAuthorization provides a mock function with given fields: r, setter, skipTLSVerification
func (*Strategy) Invalidate ¶
func (_m *Strategy) Invalidate()
Invalidate provides a mock function with given fields:
type StrategyFactory ¶
StrategyFactory is an autogenerated mock type for the StrategyFactory type
func NewStrategyFactory ¶
func NewStrategyFactory(t mockConstructorTestingTNewStrategyFactory) *StrategyFactory
NewStrategyFactory creates a new instance of StrategyFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StrategyFactory) Create ¶
func (_m *StrategyFactory) Create(credentials *authorization.Credentials) authorization.Strategy
Create provides a mock function with given fields: credentials