internal

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRSAKey

func MustRSAKey() *rsa.PrivateKey

Types

type MockAccessRequester

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

Mock of AccessRequester interface

func NewMockAccessRequester

func NewMockAccessRequester(ctrl *gomock.Controller) *MockAccessRequester

func (*MockAccessRequester) AppendRequestedScope added in v0.2.0

func (_m *MockAccessRequester) AppendRequestedScope(_param0 string)

func (*MockAccessRequester) EXPECT

func (_m *MockAccessRequester) EXPECT() *_MockAccessRequesterRecorder

func (*MockAccessRequester) GetClient

func (_m *MockAccessRequester) GetClient() fosite.Client

func (*MockAccessRequester) GetGrantTypes

func (_m *MockAccessRequester) GetGrantTypes() fosite.Arguments

func (*MockAccessRequester) GetGrantedScopes

func (_m *MockAccessRequester) GetGrantedScopes() fosite.Arguments

func (*MockAccessRequester) GetID added in v0.4.0

func (_m *MockAccessRequester) GetID() string

func (*MockAccessRequester) GetRequestForm

func (_m *MockAccessRequester) GetRequestForm() url.Values

func (*MockAccessRequester) GetRequestedAt

func (_m *MockAccessRequester) GetRequestedAt() time.Time

func (*MockAccessRequester) GetRequestedScopes added in v0.2.0

func (_m *MockAccessRequester) GetRequestedScopes() fosite.Arguments

func (*MockAccessRequester) GetSession

func (_m *MockAccessRequester) GetSession() fosite.Session

func (*MockAccessRequester) GrantScope

func (_m *MockAccessRequester) GrantScope(_param0 string)

func (*MockAccessRequester) Merge

func (_m *MockAccessRequester) Merge(_param0 fosite.Requester)

func (*MockAccessRequester) SetID added in v0.15.0

func (_m *MockAccessRequester) SetID(_param0 string)

func (*MockAccessRequester) SetRequestedScopes added in v0.2.0

func (_m *MockAccessRequester) SetRequestedScopes(_param0 fosite.Arguments)

func (*MockAccessRequester) SetSession

func (_m *MockAccessRequester) SetSession(_param0 fosite.Session)

type MockAccessResponder

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

Mock of AccessResponder interface

func NewMockAccessResponder

func NewMockAccessResponder(ctrl *gomock.Controller) *MockAccessResponder

func (*MockAccessResponder) EXPECT

func (_m *MockAccessResponder) EXPECT() *_MockAccessResponderRecorder

func (*MockAccessResponder) GetAccessToken

func (_m *MockAccessResponder) GetAccessToken() string

func (*MockAccessResponder) GetExtra

func (_m *MockAccessResponder) GetExtra(_param0 string) interface{}

func (*MockAccessResponder) GetTokenType

func (_m *MockAccessResponder) GetTokenType() string

func (*MockAccessResponder) SetAccessToken

func (_m *MockAccessResponder) SetAccessToken(_param0 string)

func (*MockAccessResponder) SetExpiresIn

func (_m *MockAccessResponder) SetExpiresIn(_param0 time.Duration)

func (*MockAccessResponder) SetExtra

func (_m *MockAccessResponder) SetExtra(_param0 string, _param1 interface{})

func (*MockAccessResponder) SetScopes

func (_m *MockAccessResponder) SetScopes(_param0 fosite.Arguments)

func (*MockAccessResponder) SetTokenType

func (_m *MockAccessResponder) SetTokenType(_param0 string)

func (*MockAccessResponder) ToMap

func (_m *MockAccessResponder) ToMap() map[string]interface{}

type MockAccessTokenStorage

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

Mock of AccessTokenStorage interface

func NewMockAccessTokenStorage

func NewMockAccessTokenStorage(ctrl *gomock.Controller) *MockAccessTokenStorage

func (*MockAccessTokenStorage) CreateAccessTokenSession

func (_m *MockAccessTokenStorage) CreateAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockAccessTokenStorage) DeleteAccessTokenSession

func (_m *MockAccessTokenStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error

func (*MockAccessTokenStorage) EXPECT

func (_m *MockAccessTokenStorage) EXPECT() *_MockAccessTokenStorageRecorder

func (*MockAccessTokenStorage) GetAccessTokenSession

func (_m *MockAccessTokenStorage) GetAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

type MockAccessTokenStrategy

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

Mock of AccessTokenStrategy interface

func NewMockAccessTokenStrategy

func NewMockAccessTokenStrategy(ctrl *gomock.Controller) *MockAccessTokenStrategy

func (*MockAccessTokenStrategy) AccessTokenSignature

func (_m *MockAccessTokenStrategy) AccessTokenSignature(_param0 string) string

func (*MockAccessTokenStrategy) EXPECT

func (_m *MockAccessTokenStrategy) EXPECT() *_MockAccessTokenStrategyRecorder

func (*MockAccessTokenStrategy) GenerateAccessToken

func (_m *MockAccessTokenStrategy) GenerateAccessToken(_param0 context.Context, _param1 fosite.Requester) (string, string, error)

func (*MockAccessTokenStrategy) ValidateAccessToken

func (_m *MockAccessTokenStrategy) ValidateAccessToken(_param0 context.Context, _param1 fosite.Requester, _param2 string) error

type MockAuthorizeCodeGrantStorage

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

Mock of AuthorizeCodeGrantStorage interface

func NewMockAuthorizeCodeGrantStorage

func NewMockAuthorizeCodeGrantStorage(ctrl *gomock.Controller) *MockAuthorizeCodeGrantStorage

func (*MockAuthorizeCodeGrantStorage) CreateAuthorizeCodeSession

func (_m *MockAuthorizeCodeGrantStorage) CreateAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockAuthorizeCodeGrantStorage) DeleteAuthorizeCodeSession

func (_m *MockAuthorizeCodeGrantStorage) DeleteAuthorizeCodeSession(_param0 context.Context, _param1 string) error

func (*MockAuthorizeCodeGrantStorage) EXPECT

func (_m *MockAuthorizeCodeGrantStorage) EXPECT() *_MockAuthorizeCodeGrantStorageRecorder

func (*MockAuthorizeCodeGrantStorage) GetAuthorizeCodeSession

func (_m *MockAuthorizeCodeGrantStorage) GetAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

func (*MockAuthorizeCodeGrantStorage) PersistAuthorizeCodeGrantSession

func (_m *MockAuthorizeCodeGrantStorage) PersistAuthorizeCodeGrantSession(_param0 context.Context, _param1 string, _param2 string, _param3 string, _param4 fosite.Requester) error

type MockAuthorizeCodeStorage

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

Mock of AuthorizeCodeStorage interface

func NewMockAuthorizeCodeStorage

func NewMockAuthorizeCodeStorage(ctrl *gomock.Controller) *MockAuthorizeCodeStorage

func (*MockAuthorizeCodeStorage) CreateAuthorizeCodeSession

func (_m *MockAuthorizeCodeStorage) CreateAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockAuthorizeCodeStorage) DeleteAuthorizeCodeSession

func (_m *MockAuthorizeCodeStorage) DeleteAuthorizeCodeSession(_param0 context.Context, _param1 string) error

func (*MockAuthorizeCodeStorage) EXPECT

func (_m *MockAuthorizeCodeStorage) EXPECT() *_MockAuthorizeCodeStorageRecorder

func (*MockAuthorizeCodeStorage) GetAuthorizeCodeSession

func (_m *MockAuthorizeCodeStorage) GetAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

type MockAuthorizeCodeStrategy

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

Mock of AuthorizeCodeStrategy interface

func NewMockAuthorizeCodeStrategy

func NewMockAuthorizeCodeStrategy(ctrl *gomock.Controller) *MockAuthorizeCodeStrategy

func (*MockAuthorizeCodeStrategy) AuthorizeCodeSignature

func (_m *MockAuthorizeCodeStrategy) AuthorizeCodeSignature(_param0 string) string

func (*MockAuthorizeCodeStrategy) EXPECT

func (_m *MockAuthorizeCodeStrategy) EXPECT() *_MockAuthorizeCodeStrategyRecorder

func (*MockAuthorizeCodeStrategy) GenerateAuthorizeCode

func (_m *MockAuthorizeCodeStrategy) GenerateAuthorizeCode(_param0 context.Context, _param1 fosite.Requester) (string, string, error)

func (*MockAuthorizeCodeStrategy) ValidateAuthorizeCode

func (_m *MockAuthorizeCodeStrategy) ValidateAuthorizeCode(_param0 context.Context, _param1 fosite.Requester, _param2 string) error

type MockAuthorizeEndpointHandler

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

Mock of AuthorizeEndpointHandler interface

func NewMockAuthorizeEndpointHandler

func NewMockAuthorizeEndpointHandler(ctrl *gomock.Controller) *MockAuthorizeEndpointHandler

func (*MockAuthorizeEndpointHandler) EXPECT

func (_m *MockAuthorizeEndpointHandler) EXPECT() *_MockAuthorizeEndpointHandlerRecorder

func (*MockAuthorizeEndpointHandler) HandleAuthorizeEndpointRequest

func (_m *MockAuthorizeEndpointHandler) HandleAuthorizeEndpointRequest(_param0 context.Context, _param1 fosite.AuthorizeRequester, _param2 fosite.AuthorizeResponder) error

type MockAuthorizeRequester

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

Mock of AuthorizeRequester interface

func NewMockAuthorizeRequester

func NewMockAuthorizeRequester(ctrl *gomock.Controller) *MockAuthorizeRequester

func (*MockAuthorizeRequester) AppendRequestedScope added in v0.2.0

func (_m *MockAuthorizeRequester) AppendRequestedScope(_param0 string)

func (*MockAuthorizeRequester) DidHandleAllResponseTypes

func (_m *MockAuthorizeRequester) DidHandleAllResponseTypes() bool

func (*MockAuthorizeRequester) EXPECT

func (_m *MockAuthorizeRequester) EXPECT() *_MockAuthorizeRequesterRecorder

func (*MockAuthorizeRequester) GetClient

func (_m *MockAuthorizeRequester) GetClient() fosite.Client

func (*MockAuthorizeRequester) GetGrantedScopes

func (_m *MockAuthorizeRequester) GetGrantedScopes() fosite.Arguments

func (*MockAuthorizeRequester) GetID added in v0.4.0

func (_m *MockAuthorizeRequester) GetID() string

func (*MockAuthorizeRequester) GetRedirectURI

func (_m *MockAuthorizeRequester) GetRedirectURI() *url.URL

func (*MockAuthorizeRequester) GetRequestForm

func (_m *MockAuthorizeRequester) GetRequestForm() url.Values

func (*MockAuthorizeRequester) GetRequestedAt

func (_m *MockAuthorizeRequester) GetRequestedAt() time.Time

func (*MockAuthorizeRequester) GetRequestedScopes added in v0.2.0

func (_m *MockAuthorizeRequester) GetRequestedScopes() fosite.Arguments

func (*MockAuthorizeRequester) GetResponseTypes

func (_m *MockAuthorizeRequester) GetResponseTypes() fosite.Arguments

func (*MockAuthorizeRequester) GetSession

func (_m *MockAuthorizeRequester) GetSession() fosite.Session

func (*MockAuthorizeRequester) GetState

func (_m *MockAuthorizeRequester) GetState() string

func (*MockAuthorizeRequester) GrantScope

func (_m *MockAuthorizeRequester) GrantScope(_param0 string)

func (*MockAuthorizeRequester) IsRedirectURIValid

func (_m *MockAuthorizeRequester) IsRedirectURIValid() bool

func (*MockAuthorizeRequester) Merge

func (_m *MockAuthorizeRequester) Merge(_param0 fosite.Requester)

func (*MockAuthorizeRequester) SetID added in v0.15.0

func (_m *MockAuthorizeRequester) SetID(_param0 string)

func (*MockAuthorizeRequester) SetRequestedScopes added in v0.2.0

func (_m *MockAuthorizeRequester) SetRequestedScopes(_param0 fosite.Arguments)

func (*MockAuthorizeRequester) SetResponseTypeHandled

func (_m *MockAuthorizeRequester) SetResponseTypeHandled(_param0 string)

func (*MockAuthorizeRequester) SetSession

func (_m *MockAuthorizeRequester) SetSession(_param0 fosite.Session)

type MockAuthorizeResponder

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

Mock of AuthorizeResponder interface

func NewMockAuthorizeResponder

func NewMockAuthorizeResponder(ctrl *gomock.Controller) *MockAuthorizeResponder

func (*MockAuthorizeResponder) AddFragment

func (_m *MockAuthorizeResponder) AddFragment(_param0 string, _param1 string)

func (*MockAuthorizeResponder) AddHeader

func (_m *MockAuthorizeResponder) AddHeader(_param0 string, _param1 string)

func (*MockAuthorizeResponder) AddQuery

func (_m *MockAuthorizeResponder) AddQuery(_param0 string, _param1 string)

func (*MockAuthorizeResponder) EXPECT

func (_m *MockAuthorizeResponder) EXPECT() *_MockAuthorizeResponderRecorder

func (*MockAuthorizeResponder) GetCode

func (_m *MockAuthorizeResponder) GetCode() string

func (*MockAuthorizeResponder) GetFragment

func (_m *MockAuthorizeResponder) GetFragment() url.Values

func (*MockAuthorizeResponder) GetHeader

func (_m *MockAuthorizeResponder) GetHeader() http.Header

func (*MockAuthorizeResponder) GetQuery

func (_m *MockAuthorizeResponder) GetQuery() url.Values

type MockClient

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

Mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *_MockClientRecorder

func (*MockClient) GetGrantTypes

func (_m *MockClient) GetGrantTypes() fosite.Arguments

func (*MockClient) GetHashedSecret

func (_m *MockClient) GetHashedSecret() []byte

func (*MockClient) GetID

func (_m *MockClient) GetID() string

func (*MockClient) GetRedirectURIs

func (_m *MockClient) GetRedirectURIs() []string

func (*MockClient) GetResponseTypes

func (_m *MockClient) GetResponseTypes() fosite.Arguments

func (*MockClient) GetScopes added in v0.2.0

func (_m *MockClient) GetScopes() fosite.Arguments

func (*MockClient) IsPublic added in v0.4.0

func (_m *MockClient) IsPublic() bool

type MockClientCredentialsGrantStorage

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

Mock of ClientCredentialsGrantStorage interface

func NewMockClientCredentialsGrantStorage

func NewMockClientCredentialsGrantStorage(ctrl *gomock.Controller) *MockClientCredentialsGrantStorage

func (*MockClientCredentialsGrantStorage) CreateAccessTokenSession

func (_m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockClientCredentialsGrantStorage) DeleteAccessTokenSession

func (_m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error

func (*MockClientCredentialsGrantStorage) EXPECT

func (_m *MockClientCredentialsGrantStorage) EXPECT() *_MockClientCredentialsGrantStorageRecorder

func (*MockClientCredentialsGrantStorage) GetAccessTokenSession

func (_m *MockClientCredentialsGrantStorage) GetAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

type MockCoreStorage added in v0.2.0

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

Mock of CoreStorage interface

func NewMockCoreStorage added in v0.2.0

func NewMockCoreStorage(ctrl *gomock.Controller) *MockCoreStorage

func (*MockCoreStorage) CreateAccessTokenSession added in v0.2.0

func (_m *MockCoreStorage) CreateAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockCoreStorage) CreateAuthorizeCodeSession added in v0.2.0

func (_m *MockCoreStorage) CreateAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockCoreStorage) CreateRefreshTokenSession added in v0.2.0

func (_m *MockCoreStorage) CreateRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockCoreStorage) DeleteAccessTokenSession added in v0.2.0

func (_m *MockCoreStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error

func (*MockCoreStorage) DeleteAuthorizeCodeSession added in v0.2.0

func (_m *MockCoreStorage) DeleteAuthorizeCodeSession(_param0 context.Context, _param1 string) error

func (*MockCoreStorage) DeleteRefreshTokenSession added in v0.2.0

func (_m *MockCoreStorage) DeleteRefreshTokenSession(_param0 context.Context, _param1 string) error

func (*MockCoreStorage) EXPECT added in v0.2.0

func (_m *MockCoreStorage) EXPECT() *_MockCoreStorageRecorder

func (*MockCoreStorage) GetAccessTokenSession added in v0.2.0

func (_m *MockCoreStorage) GetAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

func (*MockCoreStorage) GetAuthorizeCodeSession added in v0.2.0

func (_m *MockCoreStorage) GetAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

func (*MockCoreStorage) GetRefreshTokenSession added in v0.2.0

func (_m *MockCoreStorage) GetRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

type MockCoreStrategy added in v0.2.0

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

Mock of CoreStrategy interface

func NewMockCoreStrategy added in v0.2.0

func NewMockCoreStrategy(ctrl *gomock.Controller) *MockCoreStrategy

func (*MockCoreStrategy) AccessTokenSignature added in v0.2.0

func (_m *MockCoreStrategy) AccessTokenSignature(_param0 string) string

func (*MockCoreStrategy) AuthorizeCodeSignature added in v0.2.0

func (_m *MockCoreStrategy) AuthorizeCodeSignature(_param0 string) string

func (*MockCoreStrategy) EXPECT added in v0.2.0

func (_m *MockCoreStrategy) EXPECT() *_MockCoreStrategyRecorder

func (*MockCoreStrategy) GenerateAccessToken added in v0.2.0

func (_m *MockCoreStrategy) GenerateAccessToken(_param0 context.Context, _param1 fosite.Requester) (string, string, error)

func (*MockCoreStrategy) GenerateAuthorizeCode added in v0.2.0

func (_m *MockCoreStrategy) GenerateAuthorizeCode(_param0 context.Context, _param1 fosite.Requester) (string, string, error)

func (*MockCoreStrategy) GenerateRefreshToken added in v0.2.0

func (_m *MockCoreStrategy) GenerateRefreshToken(_param0 context.Context, _param1 fosite.Requester) (string, string, error)

func (*MockCoreStrategy) RefreshTokenSignature added in v0.2.0

func (_m *MockCoreStrategy) RefreshTokenSignature(_param0 string) string

func (*MockCoreStrategy) ValidateAccessToken added in v0.2.0

func (_m *MockCoreStrategy) ValidateAccessToken(_param0 context.Context, _param1 fosite.Requester, _param2 string) error

func (*MockCoreStrategy) ValidateAuthorizeCode added in v0.2.0

func (_m *MockCoreStrategy) ValidateAuthorizeCode(_param0 context.Context, _param1 fosite.Requester, _param2 string) error

func (*MockCoreStrategy) ValidateRefreshToken added in v0.2.0

func (_m *MockCoreStrategy) ValidateRefreshToken(_param0 context.Context, _param1 fosite.Requester, _param2 string) error

type MockHasher

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

Mock of Hasher interface

func NewMockHasher

func NewMockHasher(ctrl *gomock.Controller) *MockHasher

func (*MockHasher) Compare

func (_m *MockHasher) Compare(_param0 []byte, _param1 []byte) error

func (*MockHasher) EXPECT

func (_m *MockHasher) EXPECT() *_MockHasherRecorder

func (*MockHasher) Hash

func (_m *MockHasher) Hash(_param0 []byte) ([]byte, error)

type MockOpenIDConnectRequestStorage

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

Mock of OpenIDConnectRequestStorage interface

func NewMockOpenIDConnectRequestStorage

func NewMockOpenIDConnectRequestStorage(ctrl *gomock.Controller) *MockOpenIDConnectRequestStorage

func (*MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession

func (_m *MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession

func (_m *MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession(_param0 context.Context, _param1 string) error

func (*MockOpenIDConnectRequestStorage) EXPECT

func (_m *MockOpenIDConnectRequestStorage) EXPECT() *_MockOpenIDConnectRequestStorageRecorder

func (*MockOpenIDConnectRequestStorage) GetOpenIDConnectSession

func (_m *MockOpenIDConnectRequestStorage) GetOpenIDConnectSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) (fosite.Requester, error)

type MockOpenIDConnectTokenStrategy

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

Mock of OpenIDConnectTokenStrategy interface

func NewMockOpenIDConnectTokenStrategy

func NewMockOpenIDConnectTokenStrategy(ctrl *gomock.Controller) *MockOpenIDConnectTokenStrategy

func (*MockOpenIDConnectTokenStrategy) EXPECT

func (_m *MockOpenIDConnectTokenStrategy) EXPECT() *_MockOpenIDConnectTokenStrategyRecorder

func (*MockOpenIDConnectTokenStrategy) GenerateIDToken

func (_m *MockOpenIDConnectTokenStrategy) GenerateIDToken(_param0 context.Context, _param1 fosite.Requester) (string, error)

type MockRefreshTokenGrantStorage

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

Mock of RefreshTokenGrantStorage interface

func NewMockRefreshTokenGrantStorage

func NewMockRefreshTokenGrantStorage(ctrl *gomock.Controller) *MockRefreshTokenGrantStorage

func (*MockRefreshTokenGrantStorage) CreateRefreshTokenSession

func (_m *MockRefreshTokenGrantStorage) CreateRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockRefreshTokenGrantStorage) DeleteRefreshTokenSession

func (_m *MockRefreshTokenGrantStorage) DeleteRefreshTokenSession(_param0 context.Context, _param1 string) error

func (*MockRefreshTokenGrantStorage) EXPECT

func (_m *MockRefreshTokenGrantStorage) EXPECT() *_MockRefreshTokenGrantStorageRecorder

func (*MockRefreshTokenGrantStorage) GetRefreshTokenSession

func (_m *MockRefreshTokenGrantStorage) GetRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

func (*MockRefreshTokenGrantStorage) PersistRefreshTokenGrantSession

func (_m *MockRefreshTokenGrantStorage) PersistRefreshTokenGrantSession(_param0 context.Context, _param1 string, _param2 string, _param3 string, _param4 fosite.Requester) error

type MockRefreshTokenStrategy

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

Mock of RefreshTokenStrategy interface

func NewMockRefreshTokenStrategy

func NewMockRefreshTokenStrategy(ctrl *gomock.Controller) *MockRefreshTokenStrategy

func (*MockRefreshTokenStrategy) EXPECT

func (_m *MockRefreshTokenStrategy) EXPECT() *_MockRefreshTokenStrategyRecorder

func (*MockRefreshTokenStrategy) GenerateRefreshToken

func (_m *MockRefreshTokenStrategy) GenerateRefreshToken(_param0 context.Context, _param1 fosite.Requester) (string, string, error)

func (*MockRefreshTokenStrategy) RefreshTokenSignature

func (_m *MockRefreshTokenStrategy) RefreshTokenSignature(_param0 string) string

func (*MockRefreshTokenStrategy) ValidateRefreshToken

func (_m *MockRefreshTokenStrategy) ValidateRefreshToken(_param0 context.Context, _param1 fosite.Requester, _param2 string) error

type MockRequester

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

Mock of Requester interface

func NewMockRequester

func NewMockRequester(ctrl *gomock.Controller) *MockRequester

func (*MockRequester) AppendRequestedScope added in v0.2.0

func (_m *MockRequester) AppendRequestedScope(_param0 string)

func (*MockRequester) EXPECT

func (_m *MockRequester) EXPECT() *_MockRequesterRecorder

func (*MockRequester) GetClient

func (_m *MockRequester) GetClient() fosite.Client

func (*MockRequester) GetGrantedScopes

func (_m *MockRequester) GetGrantedScopes() fosite.Arguments

func (*MockRequester) GetID added in v0.4.0

func (_m *MockRequester) GetID() string

func (*MockRequester) GetRequestForm

func (_m *MockRequester) GetRequestForm() url.Values

func (*MockRequester) GetRequestedAt

func (_m *MockRequester) GetRequestedAt() time.Time

func (*MockRequester) GetRequestedScopes added in v0.2.0

func (_m *MockRequester) GetRequestedScopes() fosite.Arguments

func (*MockRequester) GetSession

func (_m *MockRequester) GetSession() fosite.Session

func (*MockRequester) GrantScope

func (_m *MockRequester) GrantScope(_param0 string)

func (*MockRequester) Merge

func (_m *MockRequester) Merge(_param0 fosite.Requester)

func (*MockRequester) SetID added in v0.15.0

func (_m *MockRequester) SetID(_param0 string)

func (*MockRequester) SetRequestedScopes added in v0.2.0

func (_m *MockRequester) SetRequestedScopes(_param0 fosite.Arguments)

func (*MockRequester) SetSession

func (_m *MockRequester) SetSession(_param0 fosite.Session)

type MockResourceOwnerPasswordCredentialsGrantStorage

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

Mock of ResourceOwnerPasswordCredentialsGrantStorage interface

func (*MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate

func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate(_param0 context.Context, _param1 string, _param2 string) error

func (*MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession

func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockResourceOwnerPasswordCredentialsGrantStorage) CreateRefreshTokenSession added in v0.3.6

func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession

func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error

func (*MockResourceOwnerPasswordCredentialsGrantStorage) DeleteRefreshTokenSession added in v0.3.6

func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteRefreshTokenSession(_param0 context.Context, _param1 string) error

func (*MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT

func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT() *_MockResourceOwnerPasswordCredentialsGrantStorageRecorder

func (*MockResourceOwnerPasswordCredentialsGrantStorage) GetAccessTokenSession

func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) GetAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

func (*MockResourceOwnerPasswordCredentialsGrantStorage) GetRefreshTokenSession added in v0.3.6

func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) GetRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

type MockResponseWriter

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

Mock of ResponseWriter interface

func NewMockResponseWriter

func NewMockResponseWriter(ctrl *gomock.Controller) *MockResponseWriter

func (*MockResponseWriter) EXPECT

func (_m *MockResponseWriter) EXPECT() *_MockResponseWriterRecorder

func (*MockResponseWriter) Header

func (_m *MockResponseWriter) Header() http.Header

func (*MockResponseWriter) Write

func (_m *MockResponseWriter) Write(_param0 []byte) (int, error)

func (*MockResponseWriter) WriteHeader

func (_m *MockResponseWriter) WriteHeader(_param0 int)

type MockRevocationHandler added in v0.4.0

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

Mock of RevocationHandler interface

func NewMockRevocationHandler added in v0.4.0

func NewMockRevocationHandler(ctrl *gomock.Controller) *MockRevocationHandler

func (*MockRevocationHandler) EXPECT added in v0.4.0

func (_m *MockRevocationHandler) EXPECT() *_MockRevocationHandlerRecorder

func (*MockRevocationHandler) RevokeToken added in v0.4.0

func (_m *MockRevocationHandler) RevokeToken(_param0 context.Context, _param1 string, _param2 fosite.TokenType, _param3 fosite.Client) error

type MockStorage

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

Mock of Storage interface

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

func (*MockStorage) EXPECT

func (_m *MockStorage) EXPECT() *_MockStorageRecorder

func (*MockStorage) GetClient

func (_m *MockStorage) GetClient(_param0 context.Context, _param1 string) (fosite.Client, error)

type MockTokenEndpointHandler

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

Mock of TokenEndpointHandler interface

func NewMockTokenEndpointHandler

func NewMockTokenEndpointHandler(ctrl *gomock.Controller) *MockTokenEndpointHandler

func (*MockTokenEndpointHandler) EXPECT

func (_m *MockTokenEndpointHandler) EXPECT() *_MockTokenEndpointHandlerRecorder

func (*MockTokenEndpointHandler) HandleTokenEndpointRequest

func (_m *MockTokenEndpointHandler) HandleTokenEndpointRequest(_param0 context.Context, _param1 fosite.AccessRequester) error

func (*MockTokenEndpointHandler) PopulateTokenEndpointResponse

func (_m *MockTokenEndpointHandler) PopulateTokenEndpointResponse(_param0 context.Context, _param1 fosite.AccessRequester, _param2 fosite.AccessResponder) error

type MockTokenIntrospector added in v0.4.0

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

Mock of TokenIntrospector interface

func NewMockTokenIntrospector added in v0.4.0

func NewMockTokenIntrospector(ctrl *gomock.Controller) *MockTokenIntrospector

func (*MockTokenIntrospector) EXPECT added in v0.4.0

func (_m *MockTokenIntrospector) EXPECT() *_MockTokenIntrospectorRecorder

func (*MockTokenIntrospector) IntrospectToken added in v0.4.0

func (_m *MockTokenIntrospector) IntrospectToken(_param0 context.Context, _param1 string, _param2 fosite.TokenType, _param3 fosite.AccessRequester, _param4 []string) error

type MockTokenRevocationStorage added in v0.4.0

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

Mock of TokenRevocationStorage interface

func NewMockTokenRevocationStorage added in v0.4.0

func NewMockTokenRevocationStorage(ctrl *gomock.Controller) *MockTokenRevocationStorage

func (*MockTokenRevocationStorage) CreateAccessTokenSession added in v0.4.0

func (_m *MockTokenRevocationStorage) CreateAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockTokenRevocationStorage) CreateRefreshTokenSession added in v0.4.0

func (_m *MockTokenRevocationStorage) CreateRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error

func (*MockTokenRevocationStorage) DeleteAccessTokenSession added in v0.4.0

func (_m *MockTokenRevocationStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error

func (*MockTokenRevocationStorage) DeleteRefreshTokenSession added in v0.4.0

func (_m *MockTokenRevocationStorage) DeleteRefreshTokenSession(_param0 context.Context, _param1 string) error

func (*MockTokenRevocationStorage) EXPECT added in v0.4.0

func (_m *MockTokenRevocationStorage) EXPECT() *_MockTokenRevocationStorageRecorder

func (*MockTokenRevocationStorage) GetAccessTokenSession added in v0.4.0

func (_m *MockTokenRevocationStorage) GetAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

func (*MockTokenRevocationStorage) GetRefreshTokenSession added in v0.4.0

func (_m *MockTokenRevocationStorage) GetRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)

func (*MockTokenRevocationStorage) RevokeAccessToken added in v0.4.0

func (_m *MockTokenRevocationStorage) RevokeAccessToken(_param0 context.Context, _param1 string) error

func (*MockTokenRevocationStorage) RevokeRefreshToken added in v0.4.0

func (_m *MockTokenRevocationStorage) RevokeRefreshToken(_param0 context.Context, _param1 string) error

Jump to

Keyboard shortcuts

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