Documentation ¶
Index ¶
- type AuthenticationContext
- func (_m *AuthenticationContext) AuthMetadataService() service.AuthMetadataServiceServer
- func (_m *AuthenticationContext) CookieManager() interfaces.CookieHandler
- func (_m *AuthenticationContext) GetHTTPClient() *http.Client
- func (_m *AuthenticationContext) GetOAuth2MetadataURL() *url.URL
- func (_m *AuthenticationContext) GetOIdCMetadataURL() *url.URL
- func (_m *AuthenticationContext) IdentityService() service.IdentityServiceServer
- func (_m *AuthenticationContext) OAuth2ClientConfig(requestURL *url.URL) *oauth2.Config
- func (_m *AuthenticationContext) OAuth2Provider() interfaces.OAuth2Provider
- func (_m *AuthenticationContext) OAuth2ResourceServer() interfaces.OAuth2ResourceServer
- func (_m *AuthenticationContext) OidcProvider() *oidc.Provider
- func (_m *AuthenticationContext) OnAuthMetadataService() *AuthenticationContext_AuthMetadataService
- func (_m *AuthenticationContext) OnAuthMetadataServiceMatch(matchers ...interface{}) *AuthenticationContext_AuthMetadataService
- func (_m *AuthenticationContext) OnCookieManager() *AuthenticationContext_CookieManager
- func (_m *AuthenticationContext) OnCookieManagerMatch(matchers ...interface{}) *AuthenticationContext_CookieManager
- func (_m *AuthenticationContext) OnGetHTTPClient() *AuthenticationContext_GetHTTPClient
- func (_m *AuthenticationContext) OnGetHTTPClientMatch(matchers ...interface{}) *AuthenticationContext_GetHTTPClient
- func (_m *AuthenticationContext) OnGetOAuth2MetadataURL() *AuthenticationContext_GetOAuth2MetadataURL
- func (_m *AuthenticationContext) OnGetOAuth2MetadataURLMatch(matchers ...interface{}) *AuthenticationContext_GetOAuth2MetadataURL
- func (_m *AuthenticationContext) OnGetOIdCMetadataURL() *AuthenticationContext_GetOIdCMetadataURL
- func (_m *AuthenticationContext) OnGetOIdCMetadataURLMatch(matchers ...interface{}) *AuthenticationContext_GetOIdCMetadataURL
- func (_m *AuthenticationContext) OnIdentityService() *AuthenticationContext_IdentityService
- func (_m *AuthenticationContext) OnIdentityServiceMatch(matchers ...interface{}) *AuthenticationContext_IdentityService
- func (_m *AuthenticationContext) OnOAuth2ClientConfig(requestURL *url.URL) *AuthenticationContext_OAuth2ClientConfig
- func (_m *AuthenticationContext) OnOAuth2ClientConfigMatch(matchers ...interface{}) *AuthenticationContext_OAuth2ClientConfig
- func (_m *AuthenticationContext) OnOAuth2Provider() *AuthenticationContext_OAuth2Provider
- func (_m *AuthenticationContext) OnOAuth2ProviderMatch(matchers ...interface{}) *AuthenticationContext_OAuth2Provider
- func (_m *AuthenticationContext) OnOAuth2ResourceServer() *AuthenticationContext_OAuth2ResourceServer
- func (_m *AuthenticationContext) OnOAuth2ResourceServerMatch(matchers ...interface{}) *AuthenticationContext_OAuth2ResourceServer
- func (_m *AuthenticationContext) OnOidcProvider() *AuthenticationContext_OidcProvider
- func (_m *AuthenticationContext) OnOidcProviderMatch(matchers ...interface{}) *AuthenticationContext_OidcProvider
- func (_m *AuthenticationContext) OnOptions() *AuthenticationContext_Options
- func (_m *AuthenticationContext) OnOptionsMatch(matchers ...interface{}) *AuthenticationContext_Options
- func (_m *AuthenticationContext) Options() *config.Config
- type AuthenticationContext_AuthMetadataService
- type AuthenticationContext_CookieManager
- type AuthenticationContext_GetHTTPClient
- type AuthenticationContext_GetOAuth2MetadataURL
- type AuthenticationContext_GetOIdCMetadataURL
- type AuthenticationContext_IdentityService
- type AuthenticationContext_OAuth2ClientConfig
- type AuthenticationContext_OAuth2Provider
- type AuthenticationContext_OAuth2ResourceServer
- type AuthenticationContext_OidcProvider
- type AuthenticationContext_Options
- type CookieHandler
- func (_m *CookieHandler) DeleteCookies(ctx context.Context, writer http.ResponseWriter)
- func (_m *CookieHandler) OnRetrieveAuthCodeRequest(ctx context.Context, request *http.Request) *CookieHandler_RetrieveAuthCodeRequest
- func (_m *CookieHandler) OnRetrieveAuthCodeRequestMatch(matchers ...interface{}) *CookieHandler_RetrieveAuthCodeRequest
- func (_m *CookieHandler) OnRetrieveTokenValues(ctx context.Context, request *http.Request) *CookieHandler_RetrieveTokenValues
- func (_m *CookieHandler) OnRetrieveTokenValuesMatch(matchers ...interface{}) *CookieHandler_RetrieveTokenValues
- func (_m *CookieHandler) OnRetrieveUserInfo(ctx context.Context, request *http.Request) *CookieHandler_RetrieveUserInfo
- func (_m *CookieHandler) OnRetrieveUserInfoMatch(matchers ...interface{}) *CookieHandler_RetrieveUserInfo
- func (_m *CookieHandler) OnSetAuthCodeCookie(ctx context.Context, writer http.ResponseWriter, authRequestURL string) *CookieHandler_SetAuthCodeCookie
- func (_m *CookieHandler) OnSetAuthCodeCookieMatch(matchers ...interface{}) *CookieHandler_SetAuthCodeCookie
- func (_m *CookieHandler) OnSetTokenCookies(ctx context.Context, writer http.ResponseWriter, token *oauth2.Token) *CookieHandler_SetTokenCookies
- func (_m *CookieHandler) OnSetTokenCookiesMatch(matchers ...interface{}) *CookieHandler_SetTokenCookies
- func (_m *CookieHandler) OnSetUserInfoCookie(ctx context.Context, writer http.ResponseWriter, ...) *CookieHandler_SetUserInfoCookie
- func (_m *CookieHandler) OnSetUserInfoCookieMatch(matchers ...interface{}) *CookieHandler_SetUserInfoCookie
- func (_m *CookieHandler) RetrieveAuthCodeRequest(ctx context.Context, request *http.Request) (string, error)
- func (_m *CookieHandler) RetrieveTokenValues(ctx context.Context, request *http.Request) (string, string, string, error)
- func (_m *CookieHandler) RetrieveUserInfo(ctx context.Context, request *http.Request) (*service.UserInfoResponse, error)
- func (_m *CookieHandler) SetAuthCodeCookie(ctx context.Context, writer http.ResponseWriter, authRequestURL string) error
- func (_m *CookieHandler) SetTokenCookies(ctx context.Context, writer http.ResponseWriter, token *oauth2.Token) error
- func (_m *CookieHandler) SetUserInfoCookie(ctx context.Context, writer http.ResponseWriter, ...) error
- type CookieHandler_RetrieveAuthCodeRequest
- type CookieHandler_RetrieveTokenValues
- type CookieHandler_RetrieveUserInfo
- type CookieHandler_SetAuthCodeCookie
- type CookieHandler_SetTokenCookies
- type CookieHandler_SetUserInfoCookie
- type HandlerRegisterer
- type IdentityContext
- func (_m *IdentityContext) AppID() string
- func (_m *IdentityContext) Audience() string
- func (_m *IdentityContext) AuthenticatedAt() time.Time
- func (_m *IdentityContext) Claims() map[string]interface{}
- func (_m *IdentityContext) IsEmpty() bool
- func (_m *IdentityContext) OnAppID() *IdentityContext_AppID
- func (_m *IdentityContext) OnAppIDMatch(matchers ...interface{}) *IdentityContext_AppID
- func (_m *IdentityContext) OnAudience() *IdentityContext_Audience
- func (_m *IdentityContext) OnAudienceMatch(matchers ...interface{}) *IdentityContext_Audience
- func (_m *IdentityContext) OnAuthenticatedAt() *IdentityContext_AuthenticatedAt
- func (_m *IdentityContext) OnAuthenticatedAtMatch(matchers ...interface{}) *IdentityContext_AuthenticatedAt
- func (_m *IdentityContext) OnClaims() *IdentityContext_Claims
- func (_m *IdentityContext) OnClaimsMatch(matchers ...interface{}) *IdentityContext_Claims
- func (_m *IdentityContext) OnIsEmpty() *IdentityContext_IsEmpty
- func (_m *IdentityContext) OnIsEmptyMatch(matchers ...interface{}) *IdentityContext_IsEmpty
- func (_m *IdentityContext) OnScopes() *IdentityContext_Scopes
- func (_m *IdentityContext) OnScopesMatch(matchers ...interface{}) *IdentityContext_Scopes
- func (_m *IdentityContext) OnUserID() *IdentityContext_UserID
- func (_m *IdentityContext) OnUserIDMatch(matchers ...interface{}) *IdentityContext_UserID
- func (_m *IdentityContext) OnUserInfo() *IdentityContext_UserInfo
- func (_m *IdentityContext) OnUserInfoMatch(matchers ...interface{}) *IdentityContext_UserInfo
- func (_m *IdentityContext) OnWithContext(ctx context.Context) *IdentityContext_WithContext
- func (_m *IdentityContext) OnWithContextMatch(matchers ...interface{}) *IdentityContext_WithContext
- func (_m *IdentityContext) Scopes() sets.String
- func (_m *IdentityContext) UserID() string
- func (_m *IdentityContext) UserInfo() *service.UserInfoResponse
- func (_m *IdentityContext) WithContext(ctx context.Context) context.Context
- type IdentityContext_AppID
- type IdentityContext_Audience
- type IdentityContext_AuthenticatedAt
- type IdentityContext_Claims
- type IdentityContext_IsEmpty
- type IdentityContext_Scopes
- type IdentityContext_UserID
- type IdentityContext_UserInfo
- type IdentityContext_WithContext
- type OAuth2Provider
- func (_m *OAuth2Provider) IntrospectToken(ctx context.Context, token string, tokenUse fosite.TokenType, ...) (fosite.TokenType, fosite.AccessRequester, error)
- func (_m *OAuth2Provider) KeySet() jwk.Set
- func (_m *OAuth2Provider) NewAccessRequest(ctx context.Context, req *http.Request, session fosite.Session) (fosite.AccessRequester, error)
- func (_m *OAuth2Provider) NewAccessResponse(ctx context.Context, requester fosite.AccessRequester) (fosite.AccessResponder, error)
- func (_m *OAuth2Provider) NewAuthorizeRequest(ctx context.Context, req *http.Request) (fosite.AuthorizeRequester, error)
- func (_m *OAuth2Provider) NewAuthorizeResponse(ctx context.Context, requester fosite.AuthorizeRequester, ...) (fosite.AuthorizeResponder, error)
- func (_m *OAuth2Provider) NewIntrospectionRequest(ctx context.Context, r *http.Request, session fosite.Session) (fosite.IntrospectionResponder, error)
- func (_m *OAuth2Provider) NewJWTSessionToken(subject string, appID string, issuer string, audience string, ...) *oauth2.JWTSession
- func (_m *OAuth2Provider) NewRevocationRequest(ctx context.Context, r *http.Request) error
- func (_m *OAuth2Provider) OnIntrospectToken(ctx context.Context, token string, tokenUse fosite.TokenType, ...) *OAuth2Provider_IntrospectToken
- func (_m *OAuth2Provider) OnIntrospectTokenMatch(matchers ...interface{}) *OAuth2Provider_IntrospectToken
- func (_m *OAuth2Provider) OnKeySet() *OAuth2Provider_KeySet
- func (_m *OAuth2Provider) OnKeySetMatch(matchers ...interface{}) *OAuth2Provider_KeySet
- func (_m *OAuth2Provider) OnNewAccessRequest(ctx context.Context, req *http.Request, session fosite.Session) *OAuth2Provider_NewAccessRequest
- func (_m *OAuth2Provider) OnNewAccessRequestMatch(matchers ...interface{}) *OAuth2Provider_NewAccessRequest
- func (_m *OAuth2Provider) OnNewAccessResponse(ctx context.Context, requester fosite.AccessRequester) *OAuth2Provider_NewAccessResponse
- func (_m *OAuth2Provider) OnNewAccessResponseMatch(matchers ...interface{}) *OAuth2Provider_NewAccessResponse
- func (_m *OAuth2Provider) OnNewAuthorizeRequest(ctx context.Context, req *http.Request) *OAuth2Provider_NewAuthorizeRequest
- func (_m *OAuth2Provider) OnNewAuthorizeRequestMatch(matchers ...interface{}) *OAuth2Provider_NewAuthorizeRequest
- func (_m *OAuth2Provider) OnNewAuthorizeResponse(ctx context.Context, requester fosite.AuthorizeRequester, ...) *OAuth2Provider_NewAuthorizeResponse
- func (_m *OAuth2Provider) OnNewAuthorizeResponseMatch(matchers ...interface{}) *OAuth2Provider_NewAuthorizeResponse
- func (_m *OAuth2Provider) OnNewIntrospectionRequest(ctx context.Context, r *http.Request, session fosite.Session) *OAuth2Provider_NewIntrospectionRequest
- func (_m *OAuth2Provider) OnNewIntrospectionRequestMatch(matchers ...interface{}) *OAuth2Provider_NewIntrospectionRequest
- func (_m *OAuth2Provider) OnNewJWTSessionToken(subject string, appID string, issuer string, audience string, ...) *OAuth2Provider_NewJWTSessionToken
- func (_m *OAuth2Provider) OnNewJWTSessionTokenMatch(matchers ...interface{}) *OAuth2Provider_NewJWTSessionToken
- func (_m *OAuth2Provider) OnNewRevocationRequest(ctx context.Context, r *http.Request) *OAuth2Provider_NewRevocationRequest
- func (_m *OAuth2Provider) OnNewRevocationRequestMatch(matchers ...interface{}) *OAuth2Provider_NewRevocationRequest
- func (_m *OAuth2Provider) OnValidateAccessToken(ctx context.Context, expectedAudience string, tokenStr string) *OAuth2Provider_ValidateAccessToken
- func (_m *OAuth2Provider) OnValidateAccessTokenMatch(matchers ...interface{}) *OAuth2Provider_ValidateAccessToken
- func (_m *OAuth2Provider) ValidateAccessToken(ctx context.Context, expectedAudience string, tokenStr string) (interfaces.IdentityContext, error)
- func (_m *OAuth2Provider) WriteAccessError(rw http.ResponseWriter, requester fosite.AccessRequester, err error)
- func (_m *OAuth2Provider) WriteAccessResponse(rw http.ResponseWriter, requester fosite.AccessRequester, ...)
- func (_m *OAuth2Provider) WriteAuthorizeError(rw http.ResponseWriter, requester fosite.AuthorizeRequester, err error)
- func (_m *OAuth2Provider) WriteAuthorizeResponse(rw http.ResponseWriter, requester fosite.AuthorizeRequester, ...)
- func (_m *OAuth2Provider) WriteIntrospectionError(rw http.ResponseWriter, err error)
- func (_m *OAuth2Provider) WriteIntrospectionResponse(rw http.ResponseWriter, r fosite.IntrospectionResponder)
- func (_m *OAuth2Provider) WriteRevocationResponse(rw http.ResponseWriter, err error)
- type OAuth2Provider_IntrospectToken
- type OAuth2Provider_KeySet
- type OAuth2Provider_NewAccessRequest
- type OAuth2Provider_NewAccessResponse
- type OAuth2Provider_NewAuthorizeRequest
- type OAuth2Provider_NewAuthorizeResponse
- type OAuth2Provider_NewIntrospectionRequest
- type OAuth2Provider_NewJWTSessionToken
- type OAuth2Provider_NewRevocationRequest
- type OAuth2Provider_ValidateAccessToken
- type OAuth2ResourceServer
- func (_m *OAuth2ResourceServer) OnValidateAccessToken(ctx context.Context, expectedAudience string, tokenStr string) *OAuth2ResourceServer_ValidateAccessToken
- func (_m *OAuth2ResourceServer) OnValidateAccessTokenMatch(matchers ...interface{}) *OAuth2ResourceServer_ValidateAccessToken
- func (_m *OAuth2ResourceServer) ValidateAccessToken(ctx context.Context, expectedAudience string, tokenStr string) (interfaces.IdentityContext, error)
- type OAuth2ResourceServer_ValidateAccessToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationContext ¶
AuthenticationContext is an autogenerated mock type for the AuthenticationContext type
func (*AuthenticationContext) AuthMetadataService ¶
func (_m *AuthenticationContext) AuthMetadataService() service.AuthMetadataServiceServer
AuthMetadataService provides a mock function with given fields:
func (*AuthenticationContext) CookieManager ¶
func (_m *AuthenticationContext) CookieManager() interfaces.CookieHandler
CookieManager provides a mock function with given fields:
func (*AuthenticationContext) GetHTTPClient ¶
func (_m *AuthenticationContext) GetHTTPClient() *http.Client
GetHTTPClient provides a mock function with given fields:
func (*AuthenticationContext) GetOAuth2MetadataURL ¶
func (_m *AuthenticationContext) GetOAuth2MetadataURL() *url.URL
GetOAuth2MetadataURL provides a mock function with given fields:
func (*AuthenticationContext) GetOIdCMetadataURL ¶
func (_m *AuthenticationContext) GetOIdCMetadataURL() *url.URL
GetOIdCMetadataURL provides a mock function with given fields:
func (*AuthenticationContext) IdentityService ¶
func (_m *AuthenticationContext) IdentityService() service.IdentityServiceServer
IdentityService provides a mock function with given 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 given fields:
func (*AuthenticationContext) OAuth2ResourceServer ¶
func (_m *AuthenticationContext) OAuth2ResourceServer() interfaces.OAuth2ResourceServer
OAuth2ResourceServer provides a mock function with given fields:
func (*AuthenticationContext) OidcProvider ¶
func (_m *AuthenticationContext) OidcProvider() *oidc.Provider
OidcProvider provides a mock function with given fields:
func (*AuthenticationContext) OnAuthMetadataService ¶
func (_m *AuthenticationContext) OnAuthMetadataService() *AuthenticationContext_AuthMetadataService
func (*AuthenticationContext) OnAuthMetadataServiceMatch ¶
func (_m *AuthenticationContext) OnAuthMetadataServiceMatch(matchers ...interface{}) *AuthenticationContext_AuthMetadataService
func (*AuthenticationContext) OnCookieManager ¶
func (_m *AuthenticationContext) OnCookieManager() *AuthenticationContext_CookieManager
func (*AuthenticationContext) OnCookieManagerMatch ¶
func (_m *AuthenticationContext) OnCookieManagerMatch(matchers ...interface{}) *AuthenticationContext_CookieManager
func (*AuthenticationContext) OnGetHTTPClient ¶
func (_m *AuthenticationContext) OnGetHTTPClient() *AuthenticationContext_GetHTTPClient
func (*AuthenticationContext) OnGetHTTPClientMatch ¶
func (_m *AuthenticationContext) OnGetHTTPClientMatch(matchers ...interface{}) *AuthenticationContext_GetHTTPClient
func (*AuthenticationContext) OnGetOAuth2MetadataURL ¶
func (_m *AuthenticationContext) OnGetOAuth2MetadataURL() *AuthenticationContext_GetOAuth2MetadataURL
func (*AuthenticationContext) OnGetOAuth2MetadataURLMatch ¶
func (_m *AuthenticationContext) OnGetOAuth2MetadataURLMatch(matchers ...interface{}) *AuthenticationContext_GetOAuth2MetadataURL
func (*AuthenticationContext) OnGetOIdCMetadataURL ¶
func (_m *AuthenticationContext) OnGetOIdCMetadataURL() *AuthenticationContext_GetOIdCMetadataURL
func (*AuthenticationContext) OnGetOIdCMetadataURLMatch ¶
func (_m *AuthenticationContext) OnGetOIdCMetadataURLMatch(matchers ...interface{}) *AuthenticationContext_GetOIdCMetadataURL
func (*AuthenticationContext) OnIdentityService ¶
func (_m *AuthenticationContext) OnIdentityService() *AuthenticationContext_IdentityService
func (*AuthenticationContext) OnIdentityServiceMatch ¶
func (_m *AuthenticationContext) OnIdentityServiceMatch(matchers ...interface{}) *AuthenticationContext_IdentityService
func (*AuthenticationContext) OnOAuth2ClientConfig ¶
func (_m *AuthenticationContext) OnOAuth2ClientConfig(requestURL *url.URL) *AuthenticationContext_OAuth2ClientConfig
func (*AuthenticationContext) OnOAuth2ClientConfigMatch ¶
func (_m *AuthenticationContext) OnOAuth2ClientConfigMatch(matchers ...interface{}) *AuthenticationContext_OAuth2ClientConfig
func (*AuthenticationContext) OnOAuth2Provider ¶
func (_m *AuthenticationContext) OnOAuth2Provider() *AuthenticationContext_OAuth2Provider
func (*AuthenticationContext) OnOAuth2ProviderMatch ¶
func (_m *AuthenticationContext) OnOAuth2ProviderMatch(matchers ...interface{}) *AuthenticationContext_OAuth2Provider
func (*AuthenticationContext) OnOAuth2ResourceServer ¶
func (_m *AuthenticationContext) OnOAuth2ResourceServer() *AuthenticationContext_OAuth2ResourceServer
func (*AuthenticationContext) OnOAuth2ResourceServerMatch ¶
func (_m *AuthenticationContext) OnOAuth2ResourceServerMatch(matchers ...interface{}) *AuthenticationContext_OAuth2ResourceServer
func (*AuthenticationContext) OnOidcProvider ¶
func (_m *AuthenticationContext) OnOidcProvider() *AuthenticationContext_OidcProvider
func (*AuthenticationContext) OnOidcProviderMatch ¶
func (_m *AuthenticationContext) OnOidcProviderMatch(matchers ...interface{}) *AuthenticationContext_OidcProvider
func (*AuthenticationContext) OnOptions ¶
func (_m *AuthenticationContext) OnOptions() *AuthenticationContext_Options
func (*AuthenticationContext) OnOptionsMatch ¶
func (_m *AuthenticationContext) OnOptionsMatch(matchers ...interface{}) *AuthenticationContext_Options
func (*AuthenticationContext) Options ¶
func (_m *AuthenticationContext) Options() *config.Config
Options provides a mock function with given fields:
type AuthenticationContext_AuthMetadataService ¶
type AuthenticationContext_CookieManager ¶
func (AuthenticationContext_CookieManager) Return ¶
func (_m AuthenticationContext_CookieManager) Return(_a0 interfaces.CookieHandler) *AuthenticationContext_CookieManager
type AuthenticationContext_GetHTTPClient ¶
func (AuthenticationContext_GetHTTPClient) Return ¶
func (_m AuthenticationContext_GetHTTPClient) Return(_a0 *http.Client) *AuthenticationContext_GetHTTPClient
type AuthenticationContext_GetOAuth2MetadataURL ¶
func (AuthenticationContext_GetOAuth2MetadataURL) Return ¶
func (_m AuthenticationContext_GetOAuth2MetadataURL) Return(_a0 *url.URL) *AuthenticationContext_GetOAuth2MetadataURL
type AuthenticationContext_GetOIdCMetadataURL ¶
func (AuthenticationContext_GetOIdCMetadataURL) Return ¶
func (_m AuthenticationContext_GetOIdCMetadataURL) Return(_a0 *url.URL) *AuthenticationContext_GetOIdCMetadataURL
type AuthenticationContext_IdentityService ¶
func (AuthenticationContext_IdentityService) Return ¶
func (_m AuthenticationContext_IdentityService) Return(_a0 service.IdentityServiceServer) *AuthenticationContext_IdentityService
type AuthenticationContext_OAuth2ClientConfig ¶
func (AuthenticationContext_OAuth2ClientConfig) Return ¶
func (_m AuthenticationContext_OAuth2ClientConfig) Return(_a0 *oauth2.Config) *AuthenticationContext_OAuth2ClientConfig
type AuthenticationContext_OAuth2Provider ¶
func (AuthenticationContext_OAuth2Provider) Return ¶
func (_m AuthenticationContext_OAuth2Provider) Return(_a0 interfaces.OAuth2Provider) *AuthenticationContext_OAuth2Provider
type AuthenticationContext_OAuth2ResourceServer ¶
type AuthenticationContext_OidcProvider ¶
func (AuthenticationContext_OidcProvider) Return ¶
func (_m AuthenticationContext_OidcProvider) Return(_a0 *oidc.Provider) *AuthenticationContext_OidcProvider
type AuthenticationContext_Options ¶
func (AuthenticationContext_Options) Return ¶
func (_m AuthenticationContext_Options) Return(_a0 *config.Config) *AuthenticationContext_Options
type CookieHandler ¶
CookieHandler is an autogenerated mock type for the CookieHandler type
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) OnRetrieveAuthCodeRequest ¶
func (_m *CookieHandler) OnRetrieveAuthCodeRequest(ctx context.Context, request *http.Request) *CookieHandler_RetrieveAuthCodeRequest
func (*CookieHandler) OnRetrieveAuthCodeRequestMatch ¶
func (_m *CookieHandler) OnRetrieveAuthCodeRequestMatch(matchers ...interface{}) *CookieHandler_RetrieveAuthCodeRequest
func (*CookieHandler) OnRetrieveTokenValues ¶
func (_m *CookieHandler) OnRetrieveTokenValues(ctx context.Context, request *http.Request) *CookieHandler_RetrieveTokenValues
func (*CookieHandler) OnRetrieveTokenValuesMatch ¶
func (_m *CookieHandler) OnRetrieveTokenValuesMatch(matchers ...interface{}) *CookieHandler_RetrieveTokenValues
func (*CookieHandler) OnRetrieveUserInfo ¶
func (_m *CookieHandler) OnRetrieveUserInfo(ctx context.Context, request *http.Request) *CookieHandler_RetrieveUserInfo
func (*CookieHandler) OnRetrieveUserInfoMatch ¶
func (_m *CookieHandler) OnRetrieveUserInfoMatch(matchers ...interface{}) *CookieHandler_RetrieveUserInfo
func (*CookieHandler) OnSetAuthCodeCookie ¶
func (_m *CookieHandler) OnSetAuthCodeCookie(ctx context.Context, writer http.ResponseWriter, authRequestURL string) *CookieHandler_SetAuthCodeCookie
func (*CookieHandler) OnSetAuthCodeCookieMatch ¶
func (_m *CookieHandler) OnSetAuthCodeCookieMatch(matchers ...interface{}) *CookieHandler_SetAuthCodeCookie
func (*CookieHandler) OnSetTokenCookies ¶
func (_m *CookieHandler) OnSetTokenCookies(ctx context.Context, writer http.ResponseWriter, token *oauth2.Token) *CookieHandler_SetTokenCookies
func (*CookieHandler) OnSetTokenCookiesMatch ¶
func (_m *CookieHandler) OnSetTokenCookiesMatch(matchers ...interface{}) *CookieHandler_SetTokenCookies
func (*CookieHandler) OnSetUserInfoCookie ¶
func (_m *CookieHandler) OnSetUserInfoCookie(ctx context.Context, writer http.ResponseWriter, userInfo *service.UserInfoResponse) *CookieHandler_SetUserInfoCookie
func (*CookieHandler) OnSetUserInfoCookieMatch ¶
func (_m *CookieHandler) OnSetUserInfoCookieMatch(matchers ...interface{}) *CookieHandler_SetUserInfoCookie
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_RetrieveAuthCodeRequest ¶
func (CookieHandler_RetrieveAuthCodeRequest) Return ¶
func (_m CookieHandler_RetrieveAuthCodeRequest) Return(authRequestURL string, err error) *CookieHandler_RetrieveAuthCodeRequest
type CookieHandler_RetrieveTokenValues ¶
func (CookieHandler_RetrieveTokenValues) Return ¶
func (_m CookieHandler_RetrieveTokenValues) Return(idToken string, accessToken string, refreshToken string, err error) *CookieHandler_RetrieveTokenValues
type CookieHandler_RetrieveUserInfo ¶
func (CookieHandler_RetrieveUserInfo) Return ¶
func (_m CookieHandler_RetrieveUserInfo) Return(_a0 *service.UserInfoResponse, _a1 error) *CookieHandler_RetrieveUserInfo
type CookieHandler_SetAuthCodeCookie ¶
func (CookieHandler_SetAuthCodeCookie) Return ¶
func (_m CookieHandler_SetAuthCodeCookie) Return(_a0 error) *CookieHandler_SetAuthCodeCookie
type CookieHandler_SetTokenCookies ¶
func (CookieHandler_SetTokenCookies) Return ¶
func (_m CookieHandler_SetTokenCookies) Return(_a0 error) *CookieHandler_SetTokenCookies
type CookieHandler_SetUserInfoCookie ¶
func (CookieHandler_SetUserInfoCookie) Return ¶
func (_m CookieHandler_SetUserInfoCookie) Return(_a0 error) *CookieHandler_SetUserInfoCookie
type HandlerRegisterer ¶
HandlerRegisterer is an autogenerated mock type for the HandlerRegisterer type
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 IdentityContext ¶
IdentityContext is an autogenerated mock type for the IdentityContext type
func (*IdentityContext) AppID ¶
func (_m *IdentityContext) AppID() string
AppID provides a mock function with given fields:
func (*IdentityContext) Audience ¶ added in v0.6.92
func (_m *IdentityContext) Audience() string
Audience provides a mock function with given fields:
func (*IdentityContext) AuthenticatedAt ¶
func (_m *IdentityContext) AuthenticatedAt() time.Time
AuthenticatedAt provides a mock function with given fields:
func (*IdentityContext) Claims ¶ added in v1.1.25
func (_m *IdentityContext) Claims() map[string]interface{}
Claims provides a mock function with given fields:
func (*IdentityContext) IsEmpty ¶
func (_m *IdentityContext) IsEmpty() bool
IsEmpty provides a mock function with given fields:
func (*IdentityContext) OnAppID ¶
func (_m *IdentityContext) OnAppID() *IdentityContext_AppID
func (*IdentityContext) OnAppIDMatch ¶
func (_m *IdentityContext) OnAppIDMatch(matchers ...interface{}) *IdentityContext_AppID
func (*IdentityContext) OnAudience ¶ added in v0.6.92
func (_m *IdentityContext) OnAudience() *IdentityContext_Audience
func (*IdentityContext) OnAudienceMatch ¶ added in v0.6.92
func (_m *IdentityContext) OnAudienceMatch(matchers ...interface{}) *IdentityContext_Audience
func (*IdentityContext) OnAuthenticatedAt ¶
func (_m *IdentityContext) OnAuthenticatedAt() *IdentityContext_AuthenticatedAt
func (*IdentityContext) OnAuthenticatedAtMatch ¶
func (_m *IdentityContext) OnAuthenticatedAtMatch(matchers ...interface{}) *IdentityContext_AuthenticatedAt
func (*IdentityContext) OnClaims ¶ added in v1.1.25
func (_m *IdentityContext) OnClaims() *IdentityContext_Claims
func (*IdentityContext) OnClaimsMatch ¶ added in v1.1.25
func (_m *IdentityContext) OnClaimsMatch(matchers ...interface{}) *IdentityContext_Claims
func (*IdentityContext) OnIsEmpty ¶
func (_m *IdentityContext) OnIsEmpty() *IdentityContext_IsEmpty
func (*IdentityContext) OnIsEmptyMatch ¶
func (_m *IdentityContext) OnIsEmptyMatch(matchers ...interface{}) *IdentityContext_IsEmpty
func (*IdentityContext) OnScopes ¶
func (_m *IdentityContext) OnScopes() *IdentityContext_Scopes
func (*IdentityContext) OnScopesMatch ¶
func (_m *IdentityContext) OnScopesMatch(matchers ...interface{}) *IdentityContext_Scopes
func (*IdentityContext) OnUserID ¶
func (_m *IdentityContext) OnUserID() *IdentityContext_UserID
func (*IdentityContext) OnUserIDMatch ¶
func (_m *IdentityContext) OnUserIDMatch(matchers ...interface{}) *IdentityContext_UserID
func (*IdentityContext) OnUserInfo ¶
func (_m *IdentityContext) OnUserInfo() *IdentityContext_UserInfo
func (*IdentityContext) OnUserInfoMatch ¶
func (_m *IdentityContext) OnUserInfoMatch(matchers ...interface{}) *IdentityContext_UserInfo
func (*IdentityContext) OnWithContext ¶
func (_m *IdentityContext) OnWithContext(ctx context.Context) *IdentityContext_WithContext
func (*IdentityContext) OnWithContextMatch ¶
func (_m *IdentityContext) OnWithContextMatch(matchers ...interface{}) *IdentityContext_WithContext
func (*IdentityContext) Scopes ¶
func (_m *IdentityContext) Scopes() sets.String
Scopes provides a mock function with given fields:
func (*IdentityContext) UserID ¶
func (_m *IdentityContext) UserID() string
UserID provides a mock function with given fields:
func (*IdentityContext) UserInfo ¶
func (_m *IdentityContext) UserInfo() *service.UserInfoResponse
UserInfo provides a mock function with given 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 ¶
func (IdentityContext_AppID) Return ¶
func (_m IdentityContext_AppID) Return(_a0 string) *IdentityContext_AppID
type IdentityContext_Audience ¶ added in v0.6.92
func (IdentityContext_Audience) Return ¶ added in v0.6.92
func (_m IdentityContext_Audience) Return(_a0 string) *IdentityContext_Audience
type IdentityContext_AuthenticatedAt ¶
func (IdentityContext_AuthenticatedAt) Return ¶
func (_m IdentityContext_AuthenticatedAt) Return(_a0 time.Time) *IdentityContext_AuthenticatedAt
type IdentityContext_Claims ¶ added in v1.1.25
func (IdentityContext_Claims) Return ¶ added in v1.1.25
func (_m IdentityContext_Claims) Return(_a0 map[string]interface{}) *IdentityContext_Claims
type IdentityContext_IsEmpty ¶
func (IdentityContext_IsEmpty) Return ¶
func (_m IdentityContext_IsEmpty) Return(_a0 bool) *IdentityContext_IsEmpty
type IdentityContext_Scopes ¶
func (IdentityContext_Scopes) Return ¶
func (_m IdentityContext_Scopes) Return(_a0 sets.String) *IdentityContext_Scopes
type IdentityContext_UserID ¶
func (IdentityContext_UserID) Return ¶
func (_m IdentityContext_UserID) Return(_a0 string) *IdentityContext_UserID
type IdentityContext_UserInfo ¶
func (IdentityContext_UserInfo) Return ¶
func (_m IdentityContext_UserInfo) Return(_a0 *service.UserInfoResponse) *IdentityContext_UserInfo
type IdentityContext_WithContext ¶
func (IdentityContext_WithContext) Return ¶
func (_m IdentityContext_WithContext) Return(_a0 context.Context) *IdentityContext_WithContext
type OAuth2Provider ¶
OAuth2Provider is an autogenerated mock type for the OAuth2Provider type
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 given 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 ¶
NewRevocationRequest provides a mock function with given fields: ctx, r
func (*OAuth2Provider) OnIntrospectToken ¶
func (_m *OAuth2Provider) OnIntrospectToken(ctx context.Context, token string, tokenUse fosite.TokenType, session fosite.Session, scope ...string) *OAuth2Provider_IntrospectToken
func (*OAuth2Provider) OnIntrospectTokenMatch ¶
func (_m *OAuth2Provider) OnIntrospectTokenMatch(matchers ...interface{}) *OAuth2Provider_IntrospectToken
func (*OAuth2Provider) OnKeySet ¶
func (_m *OAuth2Provider) OnKeySet() *OAuth2Provider_KeySet
func (*OAuth2Provider) OnKeySetMatch ¶
func (_m *OAuth2Provider) OnKeySetMatch(matchers ...interface{}) *OAuth2Provider_KeySet
func (*OAuth2Provider) OnNewAccessRequest ¶
func (_m *OAuth2Provider) OnNewAccessRequest(ctx context.Context, req *http.Request, session fosite.Session) *OAuth2Provider_NewAccessRequest
func (*OAuth2Provider) OnNewAccessRequestMatch ¶
func (_m *OAuth2Provider) OnNewAccessRequestMatch(matchers ...interface{}) *OAuth2Provider_NewAccessRequest
func (*OAuth2Provider) OnNewAccessResponse ¶
func (_m *OAuth2Provider) OnNewAccessResponse(ctx context.Context, requester fosite.AccessRequester) *OAuth2Provider_NewAccessResponse
func (*OAuth2Provider) OnNewAccessResponseMatch ¶
func (_m *OAuth2Provider) OnNewAccessResponseMatch(matchers ...interface{}) *OAuth2Provider_NewAccessResponse
func (*OAuth2Provider) OnNewAuthorizeRequest ¶
func (_m *OAuth2Provider) OnNewAuthorizeRequest(ctx context.Context, req *http.Request) *OAuth2Provider_NewAuthorizeRequest
func (*OAuth2Provider) OnNewAuthorizeRequestMatch ¶
func (_m *OAuth2Provider) OnNewAuthorizeRequestMatch(matchers ...interface{}) *OAuth2Provider_NewAuthorizeRequest
func (*OAuth2Provider) OnNewAuthorizeResponse ¶
func (_m *OAuth2Provider) OnNewAuthorizeResponse(ctx context.Context, requester fosite.AuthorizeRequester, session fosite.Session) *OAuth2Provider_NewAuthorizeResponse
func (*OAuth2Provider) OnNewAuthorizeResponseMatch ¶
func (_m *OAuth2Provider) OnNewAuthorizeResponseMatch(matchers ...interface{}) *OAuth2Provider_NewAuthorizeResponse
func (*OAuth2Provider) OnNewIntrospectionRequest ¶
func (_m *OAuth2Provider) OnNewIntrospectionRequest(ctx context.Context, r *http.Request, session fosite.Session) *OAuth2Provider_NewIntrospectionRequest
func (*OAuth2Provider) OnNewIntrospectionRequestMatch ¶
func (_m *OAuth2Provider) OnNewIntrospectionRequestMatch(matchers ...interface{}) *OAuth2Provider_NewIntrospectionRequest
func (*OAuth2Provider) OnNewJWTSessionToken ¶
func (_m *OAuth2Provider) OnNewJWTSessionToken(subject string, appID string, issuer string, audience string, userInfoClaims *service.UserInfoResponse) *OAuth2Provider_NewJWTSessionToken
func (*OAuth2Provider) OnNewJWTSessionTokenMatch ¶
func (_m *OAuth2Provider) OnNewJWTSessionTokenMatch(matchers ...interface{}) *OAuth2Provider_NewJWTSessionToken
func (*OAuth2Provider) OnNewRevocationRequest ¶
func (_m *OAuth2Provider) OnNewRevocationRequest(ctx context.Context, r *http.Request) *OAuth2Provider_NewRevocationRequest
func (*OAuth2Provider) OnNewRevocationRequestMatch ¶
func (_m *OAuth2Provider) OnNewRevocationRequestMatch(matchers ...interface{}) *OAuth2Provider_NewRevocationRequest
func (*OAuth2Provider) OnValidateAccessToken ¶
func (_m *OAuth2Provider) OnValidateAccessToken(ctx context.Context, expectedAudience string, tokenStr string) *OAuth2Provider_ValidateAccessToken
func (*OAuth2Provider) OnValidateAccessTokenMatch ¶
func (_m *OAuth2Provider) OnValidateAccessTokenMatch(matchers ...interface{}) *OAuth2Provider_ValidateAccessToken
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_IntrospectToken ¶
func (OAuth2Provider_IntrospectToken) Return ¶
func (_m OAuth2Provider_IntrospectToken) Return(_a0 fosite.TokenType, _a1 fosite.AccessRequester, _a2 error) *OAuth2Provider_IntrospectToken
type OAuth2Provider_KeySet ¶
func (OAuth2Provider_KeySet) Return ¶
func (_m OAuth2Provider_KeySet) Return(_a0 jwk.Set) *OAuth2Provider_KeySet
type OAuth2Provider_NewAccessRequest ¶
func (OAuth2Provider_NewAccessRequest) Return ¶
func (_m OAuth2Provider_NewAccessRequest) Return(_a0 fosite.AccessRequester, _a1 error) *OAuth2Provider_NewAccessRequest
type OAuth2Provider_NewAccessResponse ¶
func (OAuth2Provider_NewAccessResponse) Return ¶
func (_m OAuth2Provider_NewAccessResponse) Return(_a0 fosite.AccessResponder, _a1 error) *OAuth2Provider_NewAccessResponse
type OAuth2Provider_NewAuthorizeRequest ¶
func (OAuth2Provider_NewAuthorizeRequest) Return ¶
func (_m OAuth2Provider_NewAuthorizeRequest) Return(_a0 fosite.AuthorizeRequester, _a1 error) *OAuth2Provider_NewAuthorizeRequest
type OAuth2Provider_NewAuthorizeResponse ¶
func (OAuth2Provider_NewAuthorizeResponse) Return ¶
func (_m OAuth2Provider_NewAuthorizeResponse) Return(_a0 fosite.AuthorizeResponder, _a1 error) *OAuth2Provider_NewAuthorizeResponse
type OAuth2Provider_NewIntrospectionRequest ¶
func (OAuth2Provider_NewIntrospectionRequest) Return ¶
func (_m OAuth2Provider_NewIntrospectionRequest) Return(_a0 fosite.IntrospectionResponder, _a1 error) *OAuth2Provider_NewIntrospectionRequest
type OAuth2Provider_NewJWTSessionToken ¶
func (OAuth2Provider_NewJWTSessionToken) Return ¶
func (_m OAuth2Provider_NewJWTSessionToken) Return(_a0 *oauth2.JWTSession) *OAuth2Provider_NewJWTSessionToken
type OAuth2Provider_NewRevocationRequest ¶
func (OAuth2Provider_NewRevocationRequest) Return ¶
func (_m OAuth2Provider_NewRevocationRequest) Return(_a0 error) *OAuth2Provider_NewRevocationRequest
type OAuth2Provider_ValidateAccessToken ¶
func (OAuth2Provider_ValidateAccessToken) Return ¶
func (_m OAuth2Provider_ValidateAccessToken) Return(_a0 interfaces.IdentityContext, _a1 error) *OAuth2Provider_ValidateAccessToken
type OAuth2ResourceServer ¶
OAuth2ResourceServer is an autogenerated mock type for the OAuth2ResourceServer type
func (*OAuth2ResourceServer) OnValidateAccessToken ¶
func (_m *OAuth2ResourceServer) OnValidateAccessToken(ctx context.Context, expectedAudience string, tokenStr string) *OAuth2ResourceServer_ValidateAccessToken
func (*OAuth2ResourceServer) OnValidateAccessTokenMatch ¶
func (_m *OAuth2ResourceServer) OnValidateAccessTokenMatch(matchers ...interface{}) *OAuth2ResourceServer_ValidateAccessToken
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_ValidateAccessToken ¶
func (OAuth2ResourceServer_ValidateAccessToken) Return ¶
func (_m OAuth2ResourceServer_ValidateAccessToken) Return(_a0 interfaces.IdentityContext, _a1 error) *OAuth2ResourceServer_ValidateAccessToken