mocks

package
v1.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationContext

type AuthenticationContext struct {
	mock.Mock
}

AuthenticationContext is an autogenerated mock type for the AuthenticationContext type

func NewAuthenticationContext added in v1.15.1

func NewAuthenticationContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthenticationContext

NewAuthenticationContext creates a new instance of AuthenticationContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AuthenticationContext) AuthMetadataService

func (_m *AuthenticationContext) AuthMetadataService() service.AuthMetadataServiceServer

AuthMetadataService provides a mock function with no fields

func (*AuthenticationContext) CookieManager

func (_m *AuthenticationContext) CookieManager() interfaces.CookieHandler

CookieManager provides a mock function with no fields

func (*AuthenticationContext) EXPECT added in v1.15.1

func (*AuthenticationContext) GetHTTPClient

func (_m *AuthenticationContext) GetHTTPClient() *http.Client

GetHTTPClient provides a mock function with no fields

func (*AuthenticationContext) GetOAuth2MetadataURL

func (_m *AuthenticationContext) GetOAuth2MetadataURL() *url.URL

GetOAuth2MetadataURL provides a mock function with no fields

func (*AuthenticationContext) GetOIdCMetadataURL

func (_m *AuthenticationContext) GetOIdCMetadataURL() *url.URL

GetOIdCMetadataURL provides a mock function with no fields

func (*AuthenticationContext) IdentityService

func (_m *AuthenticationContext) IdentityService() service.IdentityServiceServer

IdentityService provides a mock function with no fields

func (*AuthenticationContext) OAuth2ClientConfig

func (_m *AuthenticationContext) OAuth2ClientConfig(requestURL *url.URL) *oauth2.Config

OAuth2ClientConfig provides a mock function with given fields: requestURL

func (*AuthenticationContext) OAuth2Provider

func (_m *AuthenticationContext) OAuth2Provider() interfaces.OAuth2Provider

OAuth2Provider provides a mock function with no fields

func (*AuthenticationContext) OAuth2ResourceServer

func (_m *AuthenticationContext) OAuth2ResourceServer() interfaces.OAuth2ResourceServer

OAuth2ResourceServer provides a mock function with no fields

func (*AuthenticationContext) OidcProvider

func (_m *AuthenticationContext) OidcProvider() *oidc.Provider

OidcProvider provides a mock function with no fields

func (*AuthenticationContext) Options

func (_m *AuthenticationContext) Options() *config.Config

Options provides a mock function with no fields

type AuthenticationContext_AuthMetadataService_Call added in v1.15.1

type AuthenticationContext_AuthMetadataService_Call struct {
	*mock.Call
}

AuthenticationContext_AuthMetadataService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthMetadataService'

func (*AuthenticationContext_AuthMetadataService_Call) Return added in v1.15.1

func (*AuthenticationContext_AuthMetadataService_Call) Run added in v1.15.1

func (*AuthenticationContext_AuthMetadataService_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_CookieManager_Call added in v1.15.1

type AuthenticationContext_CookieManager_Call struct {
	*mock.Call
}

AuthenticationContext_CookieManager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CookieManager'

func (*AuthenticationContext_CookieManager_Call) Return added in v1.15.1

func (*AuthenticationContext_CookieManager_Call) Run added in v1.15.1

func (*AuthenticationContext_CookieManager_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_Expecter added in v1.15.1

type AuthenticationContext_Expecter struct {
	// contains filtered or unexported fields
}

func (*AuthenticationContext_Expecter) AuthMetadataService added in v1.15.1

AuthMetadataService is a helper method to define mock.On call

func (*AuthenticationContext_Expecter) CookieManager added in v1.15.1

CookieManager is a helper method to define mock.On call

func (*AuthenticationContext_Expecter) GetHTTPClient added in v1.15.1

GetHTTPClient is a helper method to define mock.On call

func (*AuthenticationContext_Expecter) GetOAuth2MetadataURL added in v1.15.1

GetOAuth2MetadataURL is a helper method to define mock.On call

func (*AuthenticationContext_Expecter) GetOIdCMetadataURL added in v1.15.1

GetOIdCMetadataURL is a helper method to define mock.On call

func (*AuthenticationContext_Expecter) IdentityService added in v1.15.1

IdentityService is a helper method to define mock.On call

func (*AuthenticationContext_Expecter) OAuth2ClientConfig added in v1.15.1

func (_e *AuthenticationContext_Expecter) OAuth2ClientConfig(requestURL interface{}) *AuthenticationContext_OAuth2ClientConfig_Call

OAuth2ClientConfig is a helper method to define mock.On call

  • requestURL *url.URL

func (*AuthenticationContext_Expecter) OAuth2Provider added in v1.15.1

OAuth2Provider is a helper method to define mock.On call

func (*AuthenticationContext_Expecter) OAuth2ResourceServer added in v1.15.1

OAuth2ResourceServer is a helper method to define mock.On call

func (*AuthenticationContext_Expecter) OidcProvider added in v1.15.1

OidcProvider is a helper method to define mock.On call

func (*AuthenticationContext_Expecter) Options added in v1.15.1

Options is a helper method to define mock.On call

type AuthenticationContext_GetHTTPClient_Call added in v1.15.1

type AuthenticationContext_GetHTTPClient_Call struct {
	*mock.Call
}

AuthenticationContext_GetHTTPClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHTTPClient'

func (*AuthenticationContext_GetHTTPClient_Call) Return added in v1.15.1

func (*AuthenticationContext_GetHTTPClient_Call) Run added in v1.15.1

func (*AuthenticationContext_GetHTTPClient_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_GetOAuth2MetadataURL_Call added in v1.15.1

type AuthenticationContext_GetOAuth2MetadataURL_Call struct {
	*mock.Call
}

AuthenticationContext_GetOAuth2MetadataURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOAuth2MetadataURL'

func (*AuthenticationContext_GetOAuth2MetadataURL_Call) Return added in v1.15.1

func (*AuthenticationContext_GetOAuth2MetadataURL_Call) Run added in v1.15.1

func (*AuthenticationContext_GetOAuth2MetadataURL_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_GetOIdCMetadataURL_Call added in v1.15.1

type AuthenticationContext_GetOIdCMetadataURL_Call struct {
	*mock.Call
}

AuthenticationContext_GetOIdCMetadataURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOIdCMetadataURL'

func (*AuthenticationContext_GetOIdCMetadataURL_Call) Return added in v1.15.1

func (*AuthenticationContext_GetOIdCMetadataURL_Call) Run added in v1.15.1

func (*AuthenticationContext_GetOIdCMetadataURL_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_IdentityService_Call added in v1.15.1

type AuthenticationContext_IdentityService_Call struct {
	*mock.Call
}

AuthenticationContext_IdentityService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IdentityService'

func (*AuthenticationContext_IdentityService_Call) Return added in v1.15.1

func (*AuthenticationContext_IdentityService_Call) Run added in v1.15.1

func (*AuthenticationContext_IdentityService_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_OAuth2ClientConfig_Call added in v1.15.1

type AuthenticationContext_OAuth2ClientConfig_Call struct {
	*mock.Call
}

AuthenticationContext_OAuth2ClientConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OAuth2ClientConfig'

func (*AuthenticationContext_OAuth2ClientConfig_Call) Return added in v1.15.1

func (*AuthenticationContext_OAuth2ClientConfig_Call) Run added in v1.15.1

func (*AuthenticationContext_OAuth2ClientConfig_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_OAuth2Provider_Call added in v1.15.1

type AuthenticationContext_OAuth2Provider_Call struct {
	*mock.Call
}

AuthenticationContext_OAuth2Provider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OAuth2Provider'

func (*AuthenticationContext_OAuth2Provider_Call) Return added in v1.15.1

func (*AuthenticationContext_OAuth2Provider_Call) Run added in v1.15.1

func (*AuthenticationContext_OAuth2Provider_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_OAuth2ResourceServer_Call added in v1.15.1

type AuthenticationContext_OAuth2ResourceServer_Call struct {
	*mock.Call
}

AuthenticationContext_OAuth2ResourceServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OAuth2ResourceServer'

func (*AuthenticationContext_OAuth2ResourceServer_Call) Return added in v1.15.1

func (*AuthenticationContext_OAuth2ResourceServer_Call) Run added in v1.15.1

func (*AuthenticationContext_OAuth2ResourceServer_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_OidcProvider_Call added in v1.15.1

type AuthenticationContext_OidcProvider_Call struct {
	*mock.Call
}

AuthenticationContext_OidcProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OidcProvider'

func (*AuthenticationContext_OidcProvider_Call) Return added in v1.15.1

func (*AuthenticationContext_OidcProvider_Call) Run added in v1.15.1

func (*AuthenticationContext_OidcProvider_Call) RunAndReturn added in v1.15.1

type AuthenticationContext_Options_Call added in v1.15.1

type AuthenticationContext_Options_Call struct {
	*mock.Call
}

AuthenticationContext_Options_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Options'

func (*AuthenticationContext_Options_Call) Return added in v1.15.1

func (*AuthenticationContext_Options_Call) Run added in v1.15.1

func (*AuthenticationContext_Options_Call) RunAndReturn added in v1.15.1

type CookieHandler

type CookieHandler struct {
	mock.Mock
}

CookieHandler is an autogenerated mock type for the CookieHandler type

func NewCookieHandler added in v1.15.1

func NewCookieHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *CookieHandler

NewCookieHandler creates a new instance of CookieHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CookieHandler) DeleteCookies

func (_m *CookieHandler) DeleteCookies(ctx context.Context, writer http.ResponseWriter)

DeleteCookies provides a mock function with given fields: ctx, writer

func (*CookieHandler) EXPECT added in v1.15.1

func (_m *CookieHandler) EXPECT() *CookieHandler_Expecter

func (*CookieHandler) RetrieveAuthCodeRequest

func (_m *CookieHandler) RetrieveAuthCodeRequest(ctx context.Context, request *http.Request) (string, error)

RetrieveAuthCodeRequest provides a mock function with given fields: ctx, request

func (*CookieHandler) RetrieveTokenValues

func (_m *CookieHandler) RetrieveTokenValues(ctx context.Context, request *http.Request) (string, string, string, error)

RetrieveTokenValues provides a mock function with given fields: ctx, request

func (*CookieHandler) RetrieveUserInfo

func (_m *CookieHandler) RetrieveUserInfo(ctx context.Context, request *http.Request) (*service.UserInfoResponse, error)

RetrieveUserInfo provides a mock function with given fields: ctx, request

func (*CookieHandler) SetAuthCodeCookie

func (_m *CookieHandler) SetAuthCodeCookie(ctx context.Context, writer http.ResponseWriter, authRequestURL string) error

SetAuthCodeCookie provides a mock function with given fields: ctx, writer, authRequestURL

func (*CookieHandler) SetTokenCookies

func (_m *CookieHandler) SetTokenCookies(ctx context.Context, writer http.ResponseWriter, token *oauth2.Token) error

SetTokenCookies provides a mock function with given fields: ctx, writer, token

func (*CookieHandler) SetUserInfoCookie

func (_m *CookieHandler) SetUserInfoCookie(ctx context.Context, writer http.ResponseWriter, userInfo *service.UserInfoResponse) error

SetUserInfoCookie provides a mock function with given fields: ctx, writer, userInfo

type CookieHandler_DeleteCookies_Call added in v1.15.1

type CookieHandler_DeleteCookies_Call struct {
	*mock.Call
}

CookieHandler_DeleteCookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCookies'

func (*CookieHandler_DeleteCookies_Call) Return added in v1.15.1

func (*CookieHandler_DeleteCookies_Call) Run added in v1.15.1

func (*CookieHandler_DeleteCookies_Call) RunAndReturn added in v1.15.1

type CookieHandler_Expecter added in v1.15.1

type CookieHandler_Expecter struct {
	// contains filtered or unexported fields
}

func (*CookieHandler_Expecter) DeleteCookies added in v1.15.1

func (_e *CookieHandler_Expecter) DeleteCookies(ctx interface{}, writer interface{}) *CookieHandler_DeleteCookies_Call

DeleteCookies is a helper method to define mock.On call

  • ctx context.Context
  • writer http.ResponseWriter

func (*CookieHandler_Expecter) RetrieveAuthCodeRequest added in v1.15.1

func (_e *CookieHandler_Expecter) RetrieveAuthCodeRequest(ctx interface{}, request interface{}) *CookieHandler_RetrieveAuthCodeRequest_Call

RetrieveAuthCodeRequest is a helper method to define mock.On call

  • ctx context.Context
  • request *http.Request

func (*CookieHandler_Expecter) RetrieveTokenValues added in v1.15.1

func (_e *CookieHandler_Expecter) RetrieveTokenValues(ctx interface{}, request interface{}) *CookieHandler_RetrieveTokenValues_Call

RetrieveTokenValues is a helper method to define mock.On call

  • ctx context.Context
  • request *http.Request

func (*CookieHandler_Expecter) RetrieveUserInfo added in v1.15.1

func (_e *CookieHandler_Expecter) RetrieveUserInfo(ctx interface{}, request interface{}) *CookieHandler_RetrieveUserInfo_Call

RetrieveUserInfo is a helper method to define mock.On call

  • ctx context.Context
  • request *http.Request

func (*CookieHandler_Expecter) SetAuthCodeCookie added in v1.15.1

func (_e *CookieHandler_Expecter) SetAuthCodeCookie(ctx interface{}, writer interface{}, authRequestURL interface{}) *CookieHandler_SetAuthCodeCookie_Call

SetAuthCodeCookie is a helper method to define mock.On call

  • ctx context.Context
  • writer http.ResponseWriter
  • authRequestURL string

func (*CookieHandler_Expecter) SetTokenCookies added in v1.15.1

func (_e *CookieHandler_Expecter) SetTokenCookies(ctx interface{}, writer interface{}, token interface{}) *CookieHandler_SetTokenCookies_Call

SetTokenCookies is a helper method to define mock.On call

  • ctx context.Context
  • writer http.ResponseWriter
  • token *oauth2.Token

func (*CookieHandler_Expecter) SetUserInfoCookie added in v1.15.1

func (_e *CookieHandler_Expecter) SetUserInfoCookie(ctx interface{}, writer interface{}, userInfo interface{}) *CookieHandler_SetUserInfoCookie_Call

SetUserInfoCookie is a helper method to define mock.On call

  • ctx context.Context
  • writer http.ResponseWriter
  • userInfo *service.UserInfoResponse

type CookieHandler_RetrieveAuthCodeRequest_Call added in v1.15.1

type CookieHandler_RetrieveAuthCodeRequest_Call struct {
	*mock.Call
}

CookieHandler_RetrieveAuthCodeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveAuthCodeRequest'

func (*CookieHandler_RetrieveAuthCodeRequest_Call) Return added in v1.15.1

func (*CookieHandler_RetrieveAuthCodeRequest_Call) Run added in v1.15.1

func (*CookieHandler_RetrieveAuthCodeRequest_Call) RunAndReturn added in v1.15.1

type CookieHandler_RetrieveTokenValues_Call added in v1.15.1

type CookieHandler_RetrieveTokenValues_Call struct {
	*mock.Call
}

CookieHandler_RetrieveTokenValues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveTokenValues'

func (*CookieHandler_RetrieveTokenValues_Call) Return added in v1.15.1

func (_c *CookieHandler_RetrieveTokenValues_Call) Return(idToken string, accessToken string, refreshToken string, err error) *CookieHandler_RetrieveTokenValues_Call

func (*CookieHandler_RetrieveTokenValues_Call) Run added in v1.15.1

func (*CookieHandler_RetrieveTokenValues_Call) RunAndReturn added in v1.15.1

type CookieHandler_RetrieveUserInfo_Call added in v1.15.1

type CookieHandler_RetrieveUserInfo_Call struct {
	*mock.Call
}

CookieHandler_RetrieveUserInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveUserInfo'

func (*CookieHandler_RetrieveUserInfo_Call) Return added in v1.15.1

func (*CookieHandler_RetrieveUserInfo_Call) Run added in v1.15.1

func (*CookieHandler_RetrieveUserInfo_Call) RunAndReturn added in v1.15.1

type CookieHandler_SetAuthCodeCookie_Call added in v1.15.1

type CookieHandler_SetAuthCodeCookie_Call struct {
	*mock.Call
}

CookieHandler_SetAuthCodeCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAuthCodeCookie'

func (*CookieHandler_SetAuthCodeCookie_Call) Return added in v1.15.1

func (*CookieHandler_SetAuthCodeCookie_Call) Run added in v1.15.1

func (*CookieHandler_SetAuthCodeCookie_Call) RunAndReturn added in v1.15.1

type CookieHandler_SetTokenCookies_Call added in v1.15.1

type CookieHandler_SetTokenCookies_Call struct {
	*mock.Call
}

CookieHandler_SetTokenCookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTokenCookies'

func (*CookieHandler_SetTokenCookies_Call) Return added in v1.15.1

func (*CookieHandler_SetTokenCookies_Call) Run added in v1.15.1

func (*CookieHandler_SetTokenCookies_Call) RunAndReturn added in v1.15.1

type CookieHandler_SetUserInfoCookie_Call added in v1.15.1

type CookieHandler_SetUserInfoCookie_Call struct {
	*mock.Call
}

CookieHandler_SetUserInfoCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetUserInfoCookie'

func (*CookieHandler_SetUserInfoCookie_Call) Return added in v1.15.1

func (*CookieHandler_SetUserInfoCookie_Call) Run added in v1.15.1

func (*CookieHandler_SetUserInfoCookie_Call) RunAndReturn added in v1.15.1

type HandlerRegisterer

type HandlerRegisterer struct {
	mock.Mock
}

HandlerRegisterer is an autogenerated mock type for the HandlerRegisterer type

func NewHandlerRegisterer added in v1.15.1

func NewHandlerRegisterer(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerRegisterer

NewHandlerRegisterer creates a new instance of HandlerRegisterer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HandlerRegisterer) EXPECT added in v1.15.1

func (*HandlerRegisterer) HandleFunc

func (_m *HandlerRegisterer) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))

HandleFunc provides a mock function with given fields: pattern, handler

type HandlerRegisterer_Expecter added in v1.15.1

type HandlerRegisterer_Expecter struct {
	// contains filtered or unexported fields
}

func (*HandlerRegisterer_Expecter) HandleFunc added in v1.15.1

func (_e *HandlerRegisterer_Expecter) HandleFunc(pattern interface{}, handler interface{}) *HandlerRegisterer_HandleFunc_Call

HandleFunc is a helper method to define mock.On call

  • pattern string
  • handler func(http.ResponseWriter , *http.Request)

type HandlerRegisterer_HandleFunc_Call added in v1.15.1

type HandlerRegisterer_HandleFunc_Call struct {
	*mock.Call
}

HandlerRegisterer_HandleFunc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleFunc'

func (*HandlerRegisterer_HandleFunc_Call) Return added in v1.15.1

func (*HandlerRegisterer_HandleFunc_Call) Run added in v1.15.1

func (*HandlerRegisterer_HandleFunc_Call) RunAndReturn added in v1.15.1

type IdentityContext

type IdentityContext struct {
	mock.Mock
}

IdentityContext is an autogenerated mock type for the IdentityContext type

func NewIdentityContext added in v1.15.1

func NewIdentityContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *IdentityContext

NewIdentityContext creates a new instance of IdentityContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IdentityContext) AppID

func (_m *IdentityContext) AppID() string

AppID provides a mock function with no fields

func (*IdentityContext) Audience

func (_m *IdentityContext) Audience() string

Audience provides a mock function with no fields

func (*IdentityContext) AuthenticatedAt

func (_m *IdentityContext) AuthenticatedAt() time.Time

AuthenticatedAt provides a mock function with no fields

func (*IdentityContext) Claims

func (_m *IdentityContext) Claims() map[string]interface{}

Claims provides a mock function with no fields

func (*IdentityContext) EXPECT added in v1.15.1

func (*IdentityContext) IsEmpty

func (_m *IdentityContext) IsEmpty() bool

IsEmpty provides a mock function with no fields

func (*IdentityContext) Scopes

func (_m *IdentityContext) Scopes() sets.String

Scopes provides a mock function with no fields

func (*IdentityContext) UserID

func (_m *IdentityContext) UserID() string

UserID provides a mock function with no fields

func (*IdentityContext) UserInfo

func (_m *IdentityContext) UserInfo() *service.UserInfoResponse

UserInfo provides a mock function with no fields

func (*IdentityContext) WithContext

func (_m *IdentityContext) WithContext(ctx context.Context) context.Context

WithContext provides a mock function with given fields: ctx

type IdentityContext_AppID_Call added in v1.15.1

type IdentityContext_AppID_Call struct {
	*mock.Call
}

IdentityContext_AppID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AppID'

func (*IdentityContext_AppID_Call) Return added in v1.15.1

func (*IdentityContext_AppID_Call) Run added in v1.15.1

func (*IdentityContext_AppID_Call) RunAndReturn added in v1.15.1

func (_c *IdentityContext_AppID_Call) RunAndReturn(run func() string) *IdentityContext_AppID_Call

type IdentityContext_Audience_Call added in v1.15.1

type IdentityContext_Audience_Call struct {
	*mock.Call
}

IdentityContext_Audience_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Audience'

func (*IdentityContext_Audience_Call) Return added in v1.15.1

func (*IdentityContext_Audience_Call) Run added in v1.15.1

func (*IdentityContext_Audience_Call) RunAndReturn added in v1.15.1

type IdentityContext_AuthenticatedAt_Call added in v1.15.1

type IdentityContext_AuthenticatedAt_Call struct {
	*mock.Call
}

IdentityContext_AuthenticatedAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthenticatedAt'

func (*IdentityContext_AuthenticatedAt_Call) Return added in v1.15.1

func (*IdentityContext_AuthenticatedAt_Call) Run added in v1.15.1

func (*IdentityContext_AuthenticatedAt_Call) RunAndReturn added in v1.15.1

type IdentityContext_Claims_Call added in v1.15.1

type IdentityContext_Claims_Call struct {
	*mock.Call
}

IdentityContext_Claims_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Claims'

func (*IdentityContext_Claims_Call) Return added in v1.15.1

func (_c *IdentityContext_Claims_Call) Return(_a0 map[string]interface{}) *IdentityContext_Claims_Call

func (*IdentityContext_Claims_Call) Run added in v1.15.1

func (*IdentityContext_Claims_Call) RunAndReturn added in v1.15.1

func (_c *IdentityContext_Claims_Call) RunAndReturn(run func() map[string]interface{}) *IdentityContext_Claims_Call

type IdentityContext_Expecter added in v1.15.1

type IdentityContext_Expecter struct {
	// contains filtered or unexported fields
}

func (*IdentityContext_Expecter) AppID added in v1.15.1

AppID is a helper method to define mock.On call

func (*IdentityContext_Expecter) Audience added in v1.15.1

Audience is a helper method to define mock.On call

func (*IdentityContext_Expecter) AuthenticatedAt added in v1.15.1

AuthenticatedAt is a helper method to define mock.On call

func (*IdentityContext_Expecter) Claims added in v1.15.1

Claims is a helper method to define mock.On call

func (*IdentityContext_Expecter) IsEmpty added in v1.15.1

IsEmpty is a helper method to define mock.On call

func (*IdentityContext_Expecter) Scopes added in v1.15.1

Scopes is a helper method to define mock.On call

func (*IdentityContext_Expecter) UserID added in v1.15.1

UserID is a helper method to define mock.On call

func (*IdentityContext_Expecter) UserInfo added in v1.15.1

UserInfo is a helper method to define mock.On call

func (*IdentityContext_Expecter) WithContext added in v1.15.1

func (_e *IdentityContext_Expecter) WithContext(ctx interface{}) *IdentityContext_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

type IdentityContext_IsEmpty_Call added in v1.15.1

type IdentityContext_IsEmpty_Call struct {
	*mock.Call
}

IdentityContext_IsEmpty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsEmpty'

func (*IdentityContext_IsEmpty_Call) Return added in v1.15.1

func (*IdentityContext_IsEmpty_Call) Run added in v1.15.1

func (*IdentityContext_IsEmpty_Call) RunAndReturn added in v1.15.1

func (_c *IdentityContext_IsEmpty_Call) RunAndReturn(run func() bool) *IdentityContext_IsEmpty_Call

type IdentityContext_Scopes_Call added in v1.15.1

type IdentityContext_Scopes_Call struct {
	*mock.Call
}

IdentityContext_Scopes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scopes'

func (*IdentityContext_Scopes_Call) Return added in v1.15.1

func (*IdentityContext_Scopes_Call) Run added in v1.15.1

func (*IdentityContext_Scopes_Call) RunAndReturn added in v1.15.1

type IdentityContext_UserID_Call added in v1.15.1

type IdentityContext_UserID_Call struct {
	*mock.Call
}

IdentityContext_UserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserID'

func (*IdentityContext_UserID_Call) Return added in v1.15.1

func (*IdentityContext_UserID_Call) Run added in v1.15.1

func (*IdentityContext_UserID_Call) RunAndReturn added in v1.15.1

func (_c *IdentityContext_UserID_Call) RunAndReturn(run func() string) *IdentityContext_UserID_Call

type IdentityContext_UserInfo_Call added in v1.15.1

type IdentityContext_UserInfo_Call struct {
	*mock.Call
}

IdentityContext_UserInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserInfo'

func (*IdentityContext_UserInfo_Call) Return added in v1.15.1

func (*IdentityContext_UserInfo_Call) Run added in v1.15.1

func (*IdentityContext_UserInfo_Call) RunAndReturn added in v1.15.1

type IdentityContext_WithContext_Call added in v1.15.1

type IdentityContext_WithContext_Call struct {
	*mock.Call
}

IdentityContext_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'

func (*IdentityContext_WithContext_Call) Return added in v1.15.1

func (*IdentityContext_WithContext_Call) Run added in v1.15.1

func (*IdentityContext_WithContext_Call) RunAndReturn added in v1.15.1

type OAuth2Provider

type OAuth2Provider struct {
	mock.Mock
}

OAuth2Provider is an autogenerated mock type for the OAuth2Provider type

func NewOAuth2Provider added in v1.15.1

func NewOAuth2Provider(t interface {
	mock.TestingT
	Cleanup(func())
}) *OAuth2Provider

NewOAuth2Provider creates a new instance of OAuth2Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OAuth2Provider) EXPECT added in v1.15.1

func (*OAuth2Provider) IntrospectToken

func (_m *OAuth2Provider) IntrospectToken(ctx context.Context, token string, tokenUse fosite.TokenType, session fosite.Session, scope ...string) (fosite.TokenType, fosite.AccessRequester, error)

IntrospectToken provides a mock function with given fields: ctx, token, tokenUse, session, scope

func (*OAuth2Provider) KeySet

func (_m *OAuth2Provider) KeySet() jwk.Set

KeySet provides a mock function with no fields

func (*OAuth2Provider) NewAccessRequest

func (_m *OAuth2Provider) NewAccessRequest(ctx context.Context, req *http.Request, session fosite.Session) (fosite.AccessRequester, error)

NewAccessRequest provides a mock function with given fields: ctx, req, session

func (*OAuth2Provider) NewAccessResponse

func (_m *OAuth2Provider) NewAccessResponse(ctx context.Context, requester fosite.AccessRequester) (fosite.AccessResponder, error)

NewAccessResponse provides a mock function with given fields: ctx, requester

func (*OAuth2Provider) NewAuthorizeRequest

func (_m *OAuth2Provider) NewAuthorizeRequest(ctx context.Context, req *http.Request) (fosite.AuthorizeRequester, error)

NewAuthorizeRequest provides a mock function with given fields: ctx, req

func (*OAuth2Provider) NewAuthorizeResponse

func (_m *OAuth2Provider) NewAuthorizeResponse(ctx context.Context, requester fosite.AuthorizeRequester, session fosite.Session) (fosite.AuthorizeResponder, error)

NewAuthorizeResponse provides a mock function with given fields: ctx, requester, session

func (*OAuth2Provider) NewIntrospectionRequest

func (_m *OAuth2Provider) NewIntrospectionRequest(ctx context.Context, r *http.Request, session fosite.Session) (fosite.IntrospectionResponder, error)

NewIntrospectionRequest provides a mock function with given fields: ctx, r, session

func (*OAuth2Provider) NewJWTSessionToken

func (_m *OAuth2Provider) NewJWTSessionToken(subject string, appID string, issuer string, audience string, userInfoClaims *service.UserInfoResponse) *oauth2.JWTSession

NewJWTSessionToken provides a mock function with given fields: subject, appID, issuer, audience, userInfoClaims

func (*OAuth2Provider) NewRevocationRequest

func (_m *OAuth2Provider) NewRevocationRequest(ctx context.Context, r *http.Request) error

NewRevocationRequest provides a mock function with given fields: ctx, r

func (*OAuth2Provider) ValidateAccessToken

func (_m *OAuth2Provider) ValidateAccessToken(ctx context.Context, expectedAudience string, tokenStr string) (interfaces.IdentityContext, error)

ValidateAccessToken provides a mock function with given fields: ctx, expectedAudience, tokenStr

func (*OAuth2Provider) WriteAccessError

func (_m *OAuth2Provider) WriteAccessError(rw http.ResponseWriter, requester fosite.AccessRequester, err error)

WriteAccessError provides a mock function with given fields: rw, requester, err

func (*OAuth2Provider) WriteAccessResponse

func (_m *OAuth2Provider) WriteAccessResponse(rw http.ResponseWriter, requester fosite.AccessRequester, responder fosite.AccessResponder)

WriteAccessResponse provides a mock function with given fields: rw, requester, responder

func (*OAuth2Provider) WriteAuthorizeError

func (_m *OAuth2Provider) WriteAuthorizeError(rw http.ResponseWriter, requester fosite.AuthorizeRequester, err error)

WriteAuthorizeError provides a mock function with given fields: rw, requester, err

func (*OAuth2Provider) WriteAuthorizeResponse

func (_m *OAuth2Provider) WriteAuthorizeResponse(rw http.ResponseWriter, requester fosite.AuthorizeRequester, responder fosite.AuthorizeResponder)

WriteAuthorizeResponse provides a mock function with given fields: rw, requester, responder

func (*OAuth2Provider) WriteIntrospectionError

func (_m *OAuth2Provider) WriteIntrospectionError(rw http.ResponseWriter, err error)

WriteIntrospectionError provides a mock function with given fields: rw, err

func (*OAuth2Provider) WriteIntrospectionResponse

func (_m *OAuth2Provider) WriteIntrospectionResponse(rw http.ResponseWriter, r fosite.IntrospectionResponder)

WriteIntrospectionResponse provides a mock function with given fields: rw, r

func (*OAuth2Provider) WriteRevocationResponse

func (_m *OAuth2Provider) WriteRevocationResponse(rw http.ResponseWriter, err error)

WriteRevocationResponse provides a mock function with given fields: rw, err

type OAuth2Provider_Expecter added in v1.15.1

type OAuth2Provider_Expecter struct {
	// contains filtered or unexported fields
}

func (*OAuth2Provider_Expecter) IntrospectToken added in v1.15.1

func (_e *OAuth2Provider_Expecter) IntrospectToken(ctx interface{}, token interface{}, tokenUse interface{}, session interface{}, scope ...interface{}) *OAuth2Provider_IntrospectToken_Call

IntrospectToken is a helper method to define mock.On call

  • ctx context.Context
  • token string
  • tokenUse fosite.TokenType
  • session fosite.Session
  • scope ...string

func (*OAuth2Provider_Expecter) KeySet added in v1.15.1

KeySet is a helper method to define mock.On call

func (*OAuth2Provider_Expecter) NewAccessRequest added in v1.15.1

func (_e *OAuth2Provider_Expecter) NewAccessRequest(ctx interface{}, req interface{}, session interface{}) *OAuth2Provider_NewAccessRequest_Call

NewAccessRequest is a helper method to define mock.On call

  • ctx context.Context
  • req *http.Request
  • session fosite.Session

func (*OAuth2Provider_Expecter) NewAccessResponse added in v1.15.1

func (_e *OAuth2Provider_Expecter) NewAccessResponse(ctx interface{}, requester interface{}) *OAuth2Provider_NewAccessResponse_Call

NewAccessResponse is a helper method to define mock.On call

  • ctx context.Context
  • requester fosite.AccessRequester

func (*OAuth2Provider_Expecter) NewAuthorizeRequest added in v1.15.1

func (_e *OAuth2Provider_Expecter) NewAuthorizeRequest(ctx interface{}, req interface{}) *OAuth2Provider_NewAuthorizeRequest_Call

NewAuthorizeRequest is a helper method to define mock.On call

  • ctx context.Context
  • req *http.Request

func (*OAuth2Provider_Expecter) NewAuthorizeResponse added in v1.15.1

func (_e *OAuth2Provider_Expecter) NewAuthorizeResponse(ctx interface{}, requester interface{}, session interface{}) *OAuth2Provider_NewAuthorizeResponse_Call

NewAuthorizeResponse is a helper method to define mock.On call

  • ctx context.Context
  • requester fosite.AuthorizeRequester
  • session fosite.Session

func (*OAuth2Provider_Expecter) NewIntrospectionRequest added in v1.15.1

func (_e *OAuth2Provider_Expecter) NewIntrospectionRequest(ctx interface{}, r interface{}, session interface{}) *OAuth2Provider_NewIntrospectionRequest_Call

NewIntrospectionRequest is a helper method to define mock.On call

  • ctx context.Context
  • r *http.Request
  • session fosite.Session

func (*OAuth2Provider_Expecter) NewJWTSessionToken added in v1.15.1

func (_e *OAuth2Provider_Expecter) NewJWTSessionToken(subject interface{}, appID interface{}, issuer interface{}, audience interface{}, userInfoClaims interface{}) *OAuth2Provider_NewJWTSessionToken_Call

NewJWTSessionToken is a helper method to define mock.On call

  • subject string
  • appID string
  • issuer string
  • audience string
  • userInfoClaims *service.UserInfoResponse

func (*OAuth2Provider_Expecter) NewRevocationRequest added in v1.15.1

func (_e *OAuth2Provider_Expecter) NewRevocationRequest(ctx interface{}, r interface{}) *OAuth2Provider_NewRevocationRequest_Call

NewRevocationRequest is a helper method to define mock.On call

  • ctx context.Context
  • r *http.Request

func (*OAuth2Provider_Expecter) ValidateAccessToken added in v1.15.1

func (_e *OAuth2Provider_Expecter) ValidateAccessToken(ctx interface{}, expectedAudience interface{}, tokenStr interface{}) *OAuth2Provider_ValidateAccessToken_Call

ValidateAccessToken is a helper method to define mock.On call

  • ctx context.Context
  • expectedAudience string
  • tokenStr string

func (*OAuth2Provider_Expecter) WriteAccessError added in v1.15.1

func (_e *OAuth2Provider_Expecter) WriteAccessError(rw interface{}, requester interface{}, err interface{}) *OAuth2Provider_WriteAccessError_Call

WriteAccessError is a helper method to define mock.On call

  • rw http.ResponseWriter
  • requester fosite.AccessRequester
  • err error

func (*OAuth2Provider_Expecter) WriteAccessResponse added in v1.15.1

func (_e *OAuth2Provider_Expecter) WriteAccessResponse(rw interface{}, requester interface{}, responder interface{}) *OAuth2Provider_WriteAccessResponse_Call

WriteAccessResponse is a helper method to define mock.On call

  • rw http.ResponseWriter
  • requester fosite.AccessRequester
  • responder fosite.AccessResponder

func (*OAuth2Provider_Expecter) WriteAuthorizeError added in v1.15.1

func (_e *OAuth2Provider_Expecter) WriteAuthorizeError(rw interface{}, requester interface{}, err interface{}) *OAuth2Provider_WriteAuthorizeError_Call

WriteAuthorizeError is a helper method to define mock.On call

  • rw http.ResponseWriter
  • requester fosite.AuthorizeRequester
  • err error

func (*OAuth2Provider_Expecter) WriteAuthorizeResponse added in v1.15.1

func (_e *OAuth2Provider_Expecter) WriteAuthorizeResponse(rw interface{}, requester interface{}, responder interface{}) *OAuth2Provider_WriteAuthorizeResponse_Call

WriteAuthorizeResponse is a helper method to define mock.On call

  • rw http.ResponseWriter
  • requester fosite.AuthorizeRequester
  • responder fosite.AuthorizeResponder

func (*OAuth2Provider_Expecter) WriteIntrospectionError added in v1.15.1

func (_e *OAuth2Provider_Expecter) WriteIntrospectionError(rw interface{}, err interface{}) *OAuth2Provider_WriteIntrospectionError_Call

WriteIntrospectionError is a helper method to define mock.On call

  • rw http.ResponseWriter
  • err error

func (*OAuth2Provider_Expecter) WriteIntrospectionResponse added in v1.15.1

func (_e *OAuth2Provider_Expecter) WriteIntrospectionResponse(rw interface{}, r interface{}) *OAuth2Provider_WriteIntrospectionResponse_Call

WriteIntrospectionResponse is a helper method to define mock.On call

  • rw http.ResponseWriter
  • r fosite.IntrospectionResponder

func (*OAuth2Provider_Expecter) WriteRevocationResponse added in v1.15.1

func (_e *OAuth2Provider_Expecter) WriteRevocationResponse(rw interface{}, err interface{}) *OAuth2Provider_WriteRevocationResponse_Call

WriteRevocationResponse is a helper method to define mock.On call

  • rw http.ResponseWriter
  • err error

type OAuth2Provider_IntrospectToken_Call added in v1.15.1

type OAuth2Provider_IntrospectToken_Call struct {
	*mock.Call
}

OAuth2Provider_IntrospectToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IntrospectToken'

func (*OAuth2Provider_IntrospectToken_Call) Return added in v1.15.1

func (*OAuth2Provider_IntrospectToken_Call) Run added in v1.15.1

func (*OAuth2Provider_IntrospectToken_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_KeySet_Call added in v1.15.1

type OAuth2Provider_KeySet_Call struct {
	*mock.Call
}

OAuth2Provider_KeySet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KeySet'

func (*OAuth2Provider_KeySet_Call) Return added in v1.15.1

func (*OAuth2Provider_KeySet_Call) Run added in v1.15.1

func (*OAuth2Provider_KeySet_Call) RunAndReturn added in v1.15.1

func (_c *OAuth2Provider_KeySet_Call) RunAndReturn(run func() jwk.Set) *OAuth2Provider_KeySet_Call

type OAuth2Provider_NewAccessRequest_Call added in v1.15.1

type OAuth2Provider_NewAccessRequest_Call struct {
	*mock.Call
}

OAuth2Provider_NewAccessRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewAccessRequest'

func (*OAuth2Provider_NewAccessRequest_Call) Return added in v1.15.1

func (*OAuth2Provider_NewAccessRequest_Call) Run added in v1.15.1

func (*OAuth2Provider_NewAccessRequest_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_NewAccessResponse_Call added in v1.15.1

type OAuth2Provider_NewAccessResponse_Call struct {
	*mock.Call
}

OAuth2Provider_NewAccessResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewAccessResponse'

func (*OAuth2Provider_NewAccessResponse_Call) Return added in v1.15.1

func (*OAuth2Provider_NewAccessResponse_Call) Run added in v1.15.1

func (*OAuth2Provider_NewAccessResponse_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_NewAuthorizeRequest_Call added in v1.15.1

type OAuth2Provider_NewAuthorizeRequest_Call struct {
	*mock.Call
}

OAuth2Provider_NewAuthorizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewAuthorizeRequest'

func (*OAuth2Provider_NewAuthorizeRequest_Call) Return added in v1.15.1

func (*OAuth2Provider_NewAuthorizeRequest_Call) Run added in v1.15.1

func (*OAuth2Provider_NewAuthorizeRequest_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_NewAuthorizeResponse_Call added in v1.15.1

type OAuth2Provider_NewAuthorizeResponse_Call struct {
	*mock.Call
}

OAuth2Provider_NewAuthorizeResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewAuthorizeResponse'

func (*OAuth2Provider_NewAuthorizeResponse_Call) Return added in v1.15.1

func (*OAuth2Provider_NewAuthorizeResponse_Call) Run added in v1.15.1

func (*OAuth2Provider_NewAuthorizeResponse_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_NewIntrospectionRequest_Call added in v1.15.1

type OAuth2Provider_NewIntrospectionRequest_Call struct {
	*mock.Call
}

OAuth2Provider_NewIntrospectionRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewIntrospectionRequest'

func (*OAuth2Provider_NewIntrospectionRequest_Call) Return added in v1.15.1

func (*OAuth2Provider_NewIntrospectionRequest_Call) Run added in v1.15.1

func (*OAuth2Provider_NewIntrospectionRequest_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_NewJWTSessionToken_Call added in v1.15.1

type OAuth2Provider_NewJWTSessionToken_Call struct {
	*mock.Call
}

OAuth2Provider_NewJWTSessionToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewJWTSessionToken'

func (*OAuth2Provider_NewJWTSessionToken_Call) Return added in v1.15.1

func (*OAuth2Provider_NewJWTSessionToken_Call) Run added in v1.15.1

func (_c *OAuth2Provider_NewJWTSessionToken_Call) Run(run func(subject string, appID string, issuer string, audience string, userInfoClaims *service.UserInfoResponse)) *OAuth2Provider_NewJWTSessionToken_Call

func (*OAuth2Provider_NewJWTSessionToken_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_NewRevocationRequest_Call added in v1.15.1

type OAuth2Provider_NewRevocationRequest_Call struct {
	*mock.Call
}

OAuth2Provider_NewRevocationRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewRevocationRequest'

func (*OAuth2Provider_NewRevocationRequest_Call) Return added in v1.15.1

func (*OAuth2Provider_NewRevocationRequest_Call) Run added in v1.15.1

func (*OAuth2Provider_NewRevocationRequest_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_ValidateAccessToken_Call added in v1.15.1

type OAuth2Provider_ValidateAccessToken_Call struct {
	*mock.Call
}

OAuth2Provider_ValidateAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateAccessToken'

func (*OAuth2Provider_ValidateAccessToken_Call) Return added in v1.15.1

func (*OAuth2Provider_ValidateAccessToken_Call) Run added in v1.15.1

func (*OAuth2Provider_ValidateAccessToken_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_WriteAccessError_Call added in v1.15.1

type OAuth2Provider_WriteAccessError_Call struct {
	*mock.Call
}

OAuth2Provider_WriteAccessError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAccessError'

func (*OAuth2Provider_WriteAccessError_Call) Return added in v1.15.1

func (*OAuth2Provider_WriteAccessError_Call) Run added in v1.15.1

func (*OAuth2Provider_WriteAccessError_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_WriteAccessResponse_Call added in v1.15.1

type OAuth2Provider_WriteAccessResponse_Call struct {
	*mock.Call
}

OAuth2Provider_WriteAccessResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAccessResponse'

func (*OAuth2Provider_WriteAccessResponse_Call) Return added in v1.15.1

func (*OAuth2Provider_WriteAccessResponse_Call) Run added in v1.15.1

func (*OAuth2Provider_WriteAccessResponse_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_WriteAuthorizeError_Call added in v1.15.1

type OAuth2Provider_WriteAuthorizeError_Call struct {
	*mock.Call
}

OAuth2Provider_WriteAuthorizeError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAuthorizeError'

func (*OAuth2Provider_WriteAuthorizeError_Call) Return added in v1.15.1

func (*OAuth2Provider_WriteAuthorizeError_Call) Run added in v1.15.1

func (*OAuth2Provider_WriteAuthorizeError_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_WriteAuthorizeResponse_Call added in v1.15.1

type OAuth2Provider_WriteAuthorizeResponse_Call struct {
	*mock.Call
}

OAuth2Provider_WriteAuthorizeResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAuthorizeResponse'

func (*OAuth2Provider_WriteAuthorizeResponse_Call) Return added in v1.15.1

func (*OAuth2Provider_WriteAuthorizeResponse_Call) Run added in v1.15.1

func (*OAuth2Provider_WriteAuthorizeResponse_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_WriteIntrospectionError_Call added in v1.15.1

type OAuth2Provider_WriteIntrospectionError_Call struct {
	*mock.Call
}

OAuth2Provider_WriteIntrospectionError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteIntrospectionError'

func (*OAuth2Provider_WriteIntrospectionError_Call) Return added in v1.15.1

func (*OAuth2Provider_WriteIntrospectionError_Call) Run added in v1.15.1

func (*OAuth2Provider_WriteIntrospectionError_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_WriteIntrospectionResponse_Call added in v1.15.1

type OAuth2Provider_WriteIntrospectionResponse_Call struct {
	*mock.Call
}

OAuth2Provider_WriteIntrospectionResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteIntrospectionResponse'

func (*OAuth2Provider_WriteIntrospectionResponse_Call) Return added in v1.15.1

func (*OAuth2Provider_WriteIntrospectionResponse_Call) Run added in v1.15.1

func (*OAuth2Provider_WriteIntrospectionResponse_Call) RunAndReturn added in v1.15.1

type OAuth2Provider_WriteRevocationResponse_Call added in v1.15.1

type OAuth2Provider_WriteRevocationResponse_Call struct {
	*mock.Call
}

OAuth2Provider_WriteRevocationResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteRevocationResponse'

func (*OAuth2Provider_WriteRevocationResponse_Call) Return added in v1.15.1

func (*OAuth2Provider_WriteRevocationResponse_Call) Run added in v1.15.1

func (*OAuth2Provider_WriteRevocationResponse_Call) RunAndReturn added in v1.15.1

type OAuth2ResourceServer

type OAuth2ResourceServer struct {
	mock.Mock
}

OAuth2ResourceServer is an autogenerated mock type for the OAuth2ResourceServer type

func NewOAuth2ResourceServer added in v1.15.1

func NewOAuth2ResourceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *OAuth2ResourceServer

NewOAuth2ResourceServer creates a new instance of OAuth2ResourceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OAuth2ResourceServer) EXPECT added in v1.15.1

func (*OAuth2ResourceServer) ValidateAccessToken

func (_m *OAuth2ResourceServer) ValidateAccessToken(ctx context.Context, expectedAudience string, tokenStr string) (interfaces.IdentityContext, error)

ValidateAccessToken provides a mock function with given fields: ctx, expectedAudience, tokenStr

type OAuth2ResourceServer_Expecter added in v1.15.1

type OAuth2ResourceServer_Expecter struct {
	// contains filtered or unexported fields
}

func (*OAuth2ResourceServer_Expecter) ValidateAccessToken added in v1.15.1

func (_e *OAuth2ResourceServer_Expecter) ValidateAccessToken(ctx interface{}, expectedAudience interface{}, tokenStr interface{}) *OAuth2ResourceServer_ValidateAccessToken_Call

ValidateAccessToken is a helper method to define mock.On call

  • ctx context.Context
  • expectedAudience string
  • tokenStr string

type OAuth2ResourceServer_ValidateAccessToken_Call added in v1.15.1

type OAuth2ResourceServer_ValidateAccessToken_Call struct {
	*mock.Call
}

OAuth2ResourceServer_ValidateAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateAccessToken'

func (*OAuth2ResourceServer_ValidateAccessToken_Call) Return added in v1.15.1

func (*OAuth2ResourceServer_ValidateAccessToken_Call) Run added in v1.15.1

func (*OAuth2ResourceServer_ValidateAccessToken_Call) RunAndReturn added in v1.15.1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL