Documentation ¶
Overview ¶
Package iface is a generated GoMock package.
Index ¶
- type AccessTokenGenerator
- type AuthorizationRequestFingerprintReader
- type AuthorizationRequestFingerprintWriter
- type Clocker
- type ContextReader
- type CookieReadWriter
- type CookieReader
- type CookieWriter
- type IDGenerator
- type IDTokenGenerator
- type MockAccessTokenGenerator
- type MockAccessTokenGeneratorMockRecorder
- type MockAuthorizationRequestFingerprintReader
- func (m *MockAuthorizationRequestFingerprintReader) EXPECT() *MockAuthorizationRequestFingerprintReaderMockRecorder
- func (m *MockAuthorizationRequestFingerprintReader) ReadAuthorizationRequestFingerprint(ctx context.Context, clientID typedef.ClientID, authCode string) (*typedef.AuthorizationRequestFingerprint, error)
- type MockAuthorizationRequestFingerprintReaderMockRecorder
- type MockAuthorizationRequestFingerprintWriter
- type MockAuthorizationRequestFingerprintWriterMockRecorder
- type MockClocker
- type MockClockerMockRecorder
- type MockContextReader
- type MockContextReaderMockRecorder
- type MockCookieReadWriter
- type MockCookieReadWriterMockRecorder
- type MockCookieReader
- type MockCookieReaderMockRecorder
- type MockCookieWriter
- type MockCookieWriterMockRecorder
- type MockIDGenerator
- type MockIDGeneratorMockRecorder
- type MockIDTokenGenerator
- type MockIDTokenGeneratorMockRecorder
- type MockRefreshTokenGenerator
- type MockRefreshTokenGeneratorMockRecorder
- type MockRefreshTokenReader
- type MockRefreshTokenReaderMockRecorder
- type MockRefreshTokenWriter
- type MockRefreshTokenWriterMockRecorder
- type MockSessionCreator
- type MockSessionCreatorMockRecorder
- type MockStructValidator
- type MockStructValidatorMockRecorder
- type MockTokenGenerator
- func (m *MockTokenGenerator) EXPECT() *MockTokenGeneratorMockRecorder
- func (m *MockTokenGenerator) GenerateAccessToken(uid typedef.UserID, claims map[string]any) (string, error)
- func (m *MockTokenGenerator) GenerateIDToken(uid typedef.UserID, audiences []string, authTime time.Time, nonce string) (string, error)
- func (m *MockTokenGenerator) GenerateRefreshToken(uid typedef.UserID, claims map[string]any) (string, error)
- type MockTokenGeneratorMockRecorder
- type MockTokenParser
- type MockTokenParserMockRecorder
- type MockTokenProcessor
- func (m *MockTokenProcessor) EXPECT() *MockTokenProcessorMockRecorder
- func (m *MockTokenProcessor) GenerateAccessToken(uid typedef.UserID, claims map[string]any) (string, error)
- func (m *MockTokenProcessor) GenerateIDToken(uid typedef.UserID, audiences []string, authTime time.Time, nonce string) (string, error)
- func (m *MockTokenProcessor) GenerateRefreshToken(uid typedef.UserID, claims map[string]any) (string, error)
- func (m *MockTokenProcessor) Parse(token string) (jwt.Token, error)
- type MockTokenProcessorMockRecorder
- func (mr *MockTokenProcessorMockRecorder) GenerateAccessToken(uid, claims any) *gomock.Call
- func (mr *MockTokenProcessorMockRecorder) GenerateIDToken(uid, audiences, authTime, nonce any) *gomock.Call
- func (mr *MockTokenProcessorMockRecorder) GenerateRefreshToken(uid, claims any) *gomock.Call
- func (mr *MockTokenProcessorMockRecorder) Parse(token any) *gomock.Call
- type RefreshTokenGenerator
- type RefreshTokenReader
- type RefreshTokenWriter
- type SessionCreator
- type StructValidator
- type TokenGenerator
- type TokenParser
- type TokenProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenGenerator ¶
type CookieReadWriter ¶
type CookieReadWriter interface { CookieReader CookieWriter }
type CookieReader ¶
type CookieWriter ¶
type IDGenerator ¶
type IDTokenGenerator ¶
type MockAccessTokenGenerator ¶
type MockAccessTokenGenerator struct {
// contains filtered or unexported fields
}
MockAccessTokenGenerator is a mock of AccessTokenGenerator interface.
func NewMockAccessTokenGenerator ¶
func NewMockAccessTokenGenerator(ctrl *gomock.Controller) *MockAccessTokenGenerator
NewMockAccessTokenGenerator creates a new mock instance.
func (*MockAccessTokenGenerator) EXPECT ¶
func (m *MockAccessTokenGenerator) EXPECT() *MockAccessTokenGeneratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccessTokenGenerator) GenerateAccessToken ¶
func (m *MockAccessTokenGenerator) GenerateAccessToken(uid typedef.UserID, claims map[string]any) (string, error)
GenerateAccessToken mocks base method.
type MockAccessTokenGeneratorMockRecorder ¶
type MockAccessTokenGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockAccessTokenGeneratorMockRecorder is the mock recorder for MockAccessTokenGenerator.
func (*MockAccessTokenGeneratorMockRecorder) GenerateAccessToken ¶
func (mr *MockAccessTokenGeneratorMockRecorder) GenerateAccessToken(uid, claims any) *gomock.Call
GenerateAccessToken indicates an expected call of GenerateAccessToken.
type MockAuthorizationRequestFingerprintReader ¶
type MockAuthorizationRequestFingerprintReader struct {
// contains filtered or unexported fields
}
MockAuthorizationRequestFingerprintReader is a mock of AuthorizationRequestFingerprintReader interface.
func NewMockAuthorizationRequestFingerprintReader ¶
func NewMockAuthorizationRequestFingerprintReader(ctrl *gomock.Controller) *MockAuthorizationRequestFingerprintReader
NewMockAuthorizationRequestFingerprintReader creates a new mock instance.
func (*MockAuthorizationRequestFingerprintReader) EXPECT ¶
func (m *MockAuthorizationRequestFingerprintReader) EXPECT() *MockAuthorizationRequestFingerprintReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizationRequestFingerprintReader) ReadAuthorizationRequestFingerprint ¶
func (m *MockAuthorizationRequestFingerprintReader) ReadAuthorizationRequestFingerprint(ctx context.Context, clientID typedef.ClientID, authCode string) (*typedef.AuthorizationRequestFingerprint, error)
ReadAuthorizationRequestFingerprint mocks base method.
type MockAuthorizationRequestFingerprintReaderMockRecorder ¶
type MockAuthorizationRequestFingerprintReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationRequestFingerprintReaderMockRecorder is the mock recorder for MockAuthorizationRequestFingerprintReader.
func (*MockAuthorizationRequestFingerprintReaderMockRecorder) ReadAuthorizationRequestFingerprint ¶
func (mr *MockAuthorizationRequestFingerprintReaderMockRecorder) ReadAuthorizationRequestFingerprint(ctx, clientID, authCode any) *gomock.Call
ReadAuthorizationRequestFingerprint indicates an expected call of ReadAuthorizationRequestFingerprint.
type MockAuthorizationRequestFingerprintWriter ¶
type MockAuthorizationRequestFingerprintWriter struct {
// contains filtered or unexported fields
}
MockAuthorizationRequestFingerprintWriter is a mock of AuthorizationRequestFingerprintWriter interface.
func NewMockAuthorizationRequestFingerprintWriter ¶
func NewMockAuthorizationRequestFingerprintWriter(ctrl *gomock.Controller) *MockAuthorizationRequestFingerprintWriter
NewMockAuthorizationRequestFingerprintWriter creates a new mock instance.
func (*MockAuthorizationRequestFingerprintWriter) EXPECT ¶
func (m *MockAuthorizationRequestFingerprintWriter) EXPECT() *MockAuthorizationRequestFingerprintWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizationRequestFingerprintWriter) WriteAuthorizationRequestFingerprint ¶
func (m *MockAuthorizationRequestFingerprintWriter) WriteAuthorizationRequestFingerprint(ctx context.Context, clientID typedef.ClientID, authCode string, param *typedef.AuthorizationRequestFingerprint) error
WriteAuthorizationRequestFingerprint mocks base method.
type MockAuthorizationRequestFingerprintWriterMockRecorder ¶
type MockAuthorizationRequestFingerprintWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationRequestFingerprintWriterMockRecorder is the mock recorder for MockAuthorizationRequestFingerprintWriter.
func (*MockAuthorizationRequestFingerprintWriterMockRecorder) WriteAuthorizationRequestFingerprint ¶
func (mr *MockAuthorizationRequestFingerprintWriterMockRecorder) WriteAuthorizationRequestFingerprint(ctx, clientID, authCode, param any) *gomock.Call
WriteAuthorizationRequestFingerprint indicates an expected call of WriteAuthorizationRequestFingerprint.
type MockClocker ¶
type MockClocker struct {
// contains filtered or unexported fields
}
MockClocker is a mock of Clocker interface.
func NewMockClocker ¶
func NewMockClocker(ctrl *gomock.Controller) *MockClocker
NewMockClocker creates a new mock instance.
func (*MockClocker) EXPECT ¶
func (m *MockClocker) EXPECT() *MockClockerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClockerMockRecorder ¶
type MockClockerMockRecorder struct {
// contains filtered or unexported fields
}
MockClockerMockRecorder is the mock recorder for MockClocker.
func (*MockClockerMockRecorder) Now ¶
func (mr *MockClockerMockRecorder) Now() *gomock.Call
Now indicates an expected call of Now.
type MockContextReader ¶
type MockContextReader struct {
// contains filtered or unexported fields
}
MockContextReader is a mock of ContextReader interface.
func NewMockContextReader ¶
func NewMockContextReader(ctrl *gomock.Controller) *MockContextReader
NewMockContextReader creates a new mock instance.
func (*MockContextReader) EXPECT ¶
func (m *MockContextReader) EXPECT() *MockContextReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockContextReaderMockRecorder ¶
type MockContextReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockContextReaderMockRecorder is the mock recorder for MockContextReader.
type MockCookieReadWriter ¶
type MockCookieReadWriter struct {
// contains filtered or unexported fields
}
MockCookieReadWriter is a mock of CookieReadWriter interface.
func NewMockCookieReadWriter ¶
func NewMockCookieReadWriter(ctrl *gomock.Controller) *MockCookieReadWriter
NewMockCookieReadWriter creates a new mock instance.
func (*MockCookieReadWriter) EXPECT ¶
func (m *MockCookieReadWriter) EXPECT() *MockCookieReadWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCookieReadWriter) Write ¶
func (m *MockCookieReadWriter) Write(w http.ResponseWriter, name, val string, ttl time.Duration) error
Write mocks base method.
type MockCookieReadWriterMockRecorder ¶
type MockCookieReadWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockCookieReadWriterMockRecorder is the mock recorder for MockCookieReadWriter.
type MockCookieReader ¶
type MockCookieReader struct {
// contains filtered or unexported fields
}
MockCookieReader is a mock of CookieReader interface.
func NewMockCookieReader ¶
func NewMockCookieReader(ctrl *gomock.Controller) *MockCookieReader
NewMockCookieReader creates a new mock instance.
func (*MockCookieReader) EXPECT ¶
func (m *MockCookieReader) EXPECT() *MockCookieReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCookieReaderMockRecorder ¶
type MockCookieReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockCookieReaderMockRecorder is the mock recorder for MockCookieReader.
type MockCookieWriter ¶
type MockCookieWriter struct {
// contains filtered or unexported fields
}
MockCookieWriter is a mock of CookieWriter interface.
func NewMockCookieWriter ¶
func NewMockCookieWriter(ctrl *gomock.Controller) *MockCookieWriter
NewMockCookieWriter creates a new mock instance.
func (*MockCookieWriter) EXPECT ¶
func (m *MockCookieWriter) EXPECT() *MockCookieWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCookieWriter) Write ¶
func (m *MockCookieWriter) Write(w http.ResponseWriter, name, val string, ttl time.Duration) error
Write mocks base method.
type MockCookieWriterMockRecorder ¶
type MockCookieWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockCookieWriterMockRecorder is the mock recorder for MockCookieWriter.
type MockIDGenerator ¶
type MockIDGenerator struct {
// contains filtered or unexported fields
}
MockIDGenerator is a mock of IDGenerator interface.
func NewMockIDGenerator ¶
func NewMockIDGenerator(ctrl *gomock.Controller) *MockIDGenerator
NewMockIDGenerator creates a new mock instance.
func (*MockIDGenerator) EXPECT ¶
func (m *MockIDGenerator) EXPECT() *MockIDGeneratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIDGenerator) NextID ¶
func (m *MockIDGenerator) NextID() (uint64, error)
NextID mocks base method.
type MockIDGeneratorMockRecorder ¶
type MockIDGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockIDGeneratorMockRecorder is the mock recorder for MockIDGenerator.
func (*MockIDGeneratorMockRecorder) NextID ¶
func (mr *MockIDGeneratorMockRecorder) NextID() *gomock.Call
NextID indicates an expected call of NextID.
type MockIDTokenGenerator ¶
type MockIDTokenGenerator struct {
// contains filtered or unexported fields
}
MockIDTokenGenerator is a mock of IDTokenGenerator interface.
func NewMockIDTokenGenerator ¶
func NewMockIDTokenGenerator(ctrl *gomock.Controller) *MockIDTokenGenerator
NewMockIDTokenGenerator creates a new mock instance.
func (*MockIDTokenGenerator) EXPECT ¶
func (m *MockIDTokenGenerator) EXPECT() *MockIDTokenGeneratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIDTokenGeneratorMockRecorder ¶
type MockIDTokenGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockIDTokenGeneratorMockRecorder is the mock recorder for MockIDTokenGenerator.
func (*MockIDTokenGeneratorMockRecorder) GenerateIDToken ¶
func (mr *MockIDTokenGeneratorMockRecorder) GenerateIDToken(uid, audiences, authTime, nonce any) *gomock.Call
GenerateIDToken indicates an expected call of GenerateIDToken.
type MockRefreshTokenGenerator ¶
type MockRefreshTokenGenerator struct {
// contains filtered or unexported fields
}
MockRefreshTokenGenerator is a mock of RefreshTokenGenerator interface.
func NewMockRefreshTokenGenerator ¶
func NewMockRefreshTokenGenerator(ctrl *gomock.Controller) *MockRefreshTokenGenerator
NewMockRefreshTokenGenerator creates a new mock instance.
func (*MockRefreshTokenGenerator) EXPECT ¶
func (m *MockRefreshTokenGenerator) EXPECT() *MockRefreshTokenGeneratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRefreshTokenGenerator) GenerateRefreshToken ¶
func (m *MockRefreshTokenGenerator) GenerateRefreshToken(uid typedef.UserID, claims map[string]any) (string, error)
GenerateRefreshToken mocks base method.
type MockRefreshTokenGeneratorMockRecorder ¶
type MockRefreshTokenGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockRefreshTokenGeneratorMockRecorder is the mock recorder for MockRefreshTokenGenerator.
func (*MockRefreshTokenGeneratorMockRecorder) GenerateRefreshToken ¶
func (mr *MockRefreshTokenGeneratorMockRecorder) GenerateRefreshToken(uid, claims any) *gomock.Call
GenerateRefreshToken indicates an expected call of GenerateRefreshToken.
type MockRefreshTokenReader ¶
type MockRefreshTokenReader struct {
// contains filtered or unexported fields
}
MockRefreshTokenReader is a mock of RefreshTokenReader interface.
func NewMockRefreshTokenReader ¶
func NewMockRefreshTokenReader(ctrl *gomock.Controller) *MockRefreshTokenReader
NewMockRefreshTokenReader creates a new mock instance.
func (*MockRefreshTokenReader) EXPECT ¶
func (m *MockRefreshTokenReader) EXPECT() *MockRefreshTokenReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRefreshTokenReaderMockRecorder ¶
type MockRefreshTokenReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockRefreshTokenReaderMockRecorder is the mock recorder for MockRefreshTokenReader.
func (*MockRefreshTokenReaderMockRecorder) ReadRefreshToken ¶
func (mr *MockRefreshTokenReaderMockRecorder) ReadRefreshToken(ctx, clientID, userID any) *gomock.Call
ReadRefreshToken indicates an expected call of ReadRefreshToken.
type MockRefreshTokenWriter ¶
type MockRefreshTokenWriter struct {
// contains filtered or unexported fields
}
MockRefreshTokenWriter is a mock of RefreshTokenWriter interface.
func NewMockRefreshTokenWriter ¶
func NewMockRefreshTokenWriter(ctrl *gomock.Controller) *MockRefreshTokenWriter
NewMockRefreshTokenWriter creates a new mock instance.
func (*MockRefreshTokenWriter) EXPECT ¶
func (m *MockRefreshTokenWriter) EXPECT() *MockRefreshTokenWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRefreshTokenWriterMockRecorder ¶
type MockRefreshTokenWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockRefreshTokenWriterMockRecorder is the mock recorder for MockRefreshTokenWriter.
func (*MockRefreshTokenWriterMockRecorder) WriteRefreshToken ¶
func (mr *MockRefreshTokenWriterMockRecorder) WriteRefreshToken(ctx, token, clientID, userID any) *gomock.Call
WriteRefreshToken indicates an expected call of WriteRefreshToken.
type MockSessionCreator ¶
type MockSessionCreator struct {
// contains filtered or unexported fields
}
MockSessionCreator is a mock of SessionCreator interface.
func NewMockSessionCreator ¶
func NewMockSessionCreator(ctrl *gomock.Controller) *MockSessionCreator
NewMockSessionCreator creates a new mock instance.
func (*MockSessionCreator) CreateSession ¶
func (m *MockSessionCreator) CreateSession(ctx context.Context, uid typedef.UserID) (typedef.SessionID, error)
CreateSession mocks base method.
func (*MockSessionCreator) EXPECT ¶
func (m *MockSessionCreator) EXPECT() *MockSessionCreatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSessionCreatorMockRecorder ¶
type MockSessionCreatorMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionCreatorMockRecorder is the mock recorder for MockSessionCreator.
func (*MockSessionCreatorMockRecorder) CreateSession ¶
func (mr *MockSessionCreatorMockRecorder) CreateSession(ctx, uid any) *gomock.Call
CreateSession indicates an expected call of CreateSession.
type MockStructValidator ¶
type MockStructValidator struct {
// contains filtered or unexported fields
}
MockStructValidator is a mock of StructValidator interface.
func NewMockStructValidator ¶
func NewMockStructValidator(ctrl *gomock.Controller) *MockStructValidator
NewMockStructValidator creates a new mock instance.
func (*MockStructValidator) EXPECT ¶
func (m *MockStructValidator) EXPECT() *MockStructValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStructValidator) Struct ¶
func (m *MockStructValidator) Struct(s any) error
Struct mocks base method.
type MockStructValidatorMockRecorder ¶
type MockStructValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockStructValidatorMockRecorder is the mock recorder for MockStructValidator.
type MockTokenGenerator ¶
type MockTokenGenerator struct {
// contains filtered or unexported fields
}
MockTokenGenerator is a mock of TokenGenerator interface.
func NewMockTokenGenerator ¶
func NewMockTokenGenerator(ctrl *gomock.Controller) *MockTokenGenerator
NewMockTokenGenerator creates a new mock instance.
func (*MockTokenGenerator) EXPECT ¶
func (m *MockTokenGenerator) EXPECT() *MockTokenGeneratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenGenerator) GenerateAccessToken ¶
func (m *MockTokenGenerator) GenerateAccessToken(uid typedef.UserID, claims map[string]any) (string, error)
GenerateAccessToken mocks base method.
func (*MockTokenGenerator) GenerateIDToken ¶
func (m *MockTokenGenerator) GenerateIDToken(uid typedef.UserID, audiences []string, authTime time.Time, nonce string) (string, error)
GenerateIDToken mocks base method.
func (*MockTokenGenerator) GenerateRefreshToken ¶
func (m *MockTokenGenerator) GenerateRefreshToken(uid typedef.UserID, claims map[string]any) (string, error)
GenerateRefreshToken mocks base method.
type MockTokenGeneratorMockRecorder ¶
type MockTokenGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenGeneratorMockRecorder is the mock recorder for MockTokenGenerator.
func (*MockTokenGeneratorMockRecorder) GenerateAccessToken ¶
func (mr *MockTokenGeneratorMockRecorder) GenerateAccessToken(uid, claims any) *gomock.Call
GenerateAccessToken indicates an expected call of GenerateAccessToken.
func (*MockTokenGeneratorMockRecorder) GenerateIDToken ¶
func (mr *MockTokenGeneratorMockRecorder) GenerateIDToken(uid, audiences, authTime, nonce any) *gomock.Call
GenerateIDToken indicates an expected call of GenerateIDToken.
func (*MockTokenGeneratorMockRecorder) GenerateRefreshToken ¶
func (mr *MockTokenGeneratorMockRecorder) GenerateRefreshToken(uid, claims any) *gomock.Call
GenerateRefreshToken indicates an expected call of GenerateRefreshToken.
type MockTokenParser ¶
type MockTokenParser struct {
// contains filtered or unexported fields
}
MockTokenParser is a mock of TokenParser interface.
func NewMockTokenParser ¶
func NewMockTokenParser(ctrl *gomock.Controller) *MockTokenParser
NewMockTokenParser creates a new mock instance.
func (*MockTokenParser) EXPECT ¶
func (m *MockTokenParser) EXPECT() *MockTokenParserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTokenParserMockRecorder ¶
type MockTokenParserMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenParserMockRecorder is the mock recorder for MockTokenParser.
type MockTokenProcessor ¶
type MockTokenProcessor struct {
// contains filtered or unexported fields
}
MockTokenProcessor is a mock of TokenProcessor interface.
func NewMockTokenProcessor ¶
func NewMockTokenProcessor(ctrl *gomock.Controller) *MockTokenProcessor
NewMockTokenProcessor creates a new mock instance.
func (*MockTokenProcessor) EXPECT ¶
func (m *MockTokenProcessor) EXPECT() *MockTokenProcessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenProcessor) GenerateAccessToken ¶
func (m *MockTokenProcessor) GenerateAccessToken(uid typedef.UserID, claims map[string]any) (string, error)
GenerateAccessToken mocks base method.
func (*MockTokenProcessor) GenerateIDToken ¶
func (m *MockTokenProcessor) GenerateIDToken(uid typedef.UserID, audiences []string, authTime time.Time, nonce string) (string, error)
GenerateIDToken mocks base method.
func (*MockTokenProcessor) GenerateRefreshToken ¶
func (m *MockTokenProcessor) GenerateRefreshToken(uid typedef.UserID, claims map[string]any) (string, error)
GenerateRefreshToken mocks base method.
type MockTokenProcessorMockRecorder ¶
type MockTokenProcessorMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenProcessorMockRecorder is the mock recorder for MockTokenProcessor.
func (*MockTokenProcessorMockRecorder) GenerateAccessToken ¶
func (mr *MockTokenProcessorMockRecorder) GenerateAccessToken(uid, claims any) *gomock.Call
GenerateAccessToken indicates an expected call of GenerateAccessToken.
func (*MockTokenProcessorMockRecorder) GenerateIDToken ¶
func (mr *MockTokenProcessorMockRecorder) GenerateIDToken(uid, audiences, authTime, nonce any) *gomock.Call
GenerateIDToken indicates an expected call of GenerateIDToken.
func (*MockTokenProcessorMockRecorder) GenerateRefreshToken ¶
func (mr *MockTokenProcessorMockRecorder) GenerateRefreshToken(uid, claims any) *gomock.Call
GenerateRefreshToken indicates an expected call of GenerateRefreshToken.
type RefreshTokenGenerator ¶
type RefreshTokenReader ¶
type RefreshTokenWriter ¶
type SessionCreator ¶
type StructValidator ¶
type TokenGenerator ¶
type TokenGenerator interface { AccessTokenGenerator RefreshTokenGenerator IDTokenGenerator }
type TokenProcessor ¶
type TokenProcessor interface { TokenGenerator TokenParser }