Documentation ¶
Index ¶
- type AuthenticationProvider
- func (_m *AuthenticationProvider) AuthorizedUserWithSession(sessionID string) (sessions.User, error)
- func (_m *AuthenticationProvider) ClearNonCurrentSessions(sessionID string) error
- func (_m *AuthenticationProvider) CreateAndSetAuthToken(user *sessions.User) (*auth.Token, error)
- func (_m *AuthenticationProvider) CreateSession(sr sessions.SessionRequest) (string, error)
- func (_m *AuthenticationProvider) CreateUser(user *sessions.User) error
- func (_m *AuthenticationProvider) DeleteAuthToken(user *sessions.User) error
- func (_m *AuthenticationProvider) DeleteUser(email string) error
- func (_m *AuthenticationProvider) DeleteUserSession(sessionID string) error
- func (_m *AuthenticationProvider) FindExternalInitiator(eia *auth.Token) (*bridges.ExternalInitiator, error)
- func (_m *AuthenticationProvider) FindUser(email string) (sessions.User, error)
- func (_m *AuthenticationProvider) FindUserByAPIToken(apiToken string) (sessions.User, error)
- func (_m *AuthenticationProvider) GetUserWebAuthn(email string) ([]sessions.WebAuthn, error)
- func (_m *AuthenticationProvider) ListUsers() ([]sessions.User, error)
- func (_m *AuthenticationProvider) SaveWebAuthn(token *sessions.WebAuthn) error
- func (_m *AuthenticationProvider) Sessions(offset int, limit int) ([]sessions.Session, error)
- func (_m *AuthenticationProvider) SetAuthToken(user *sessions.User, token *auth.Token) error
- func (_m *AuthenticationProvider) SetPassword(user *sessions.User, newPassword string) error
- func (_m *AuthenticationProvider) TestPassword(email string, password string) error
- func (_m *AuthenticationProvider) UpdateRole(email string, newRole string) (sessions.User, error)
- type BasicAdminUsersORM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationProvider ¶ added in v2.8.0
AuthenticationProvider is an autogenerated mock type for the AuthenticationProvider type
func NewAuthenticationProvider ¶ added in v2.8.0
func NewAuthenticationProvider(t interface { mock.TestingT Cleanup(func()) }) *AuthenticationProvider
NewAuthenticationProvider creates a new instance of AuthenticationProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AuthenticationProvider) AuthorizedUserWithSession ¶ added in v2.8.0
func (_m *AuthenticationProvider) AuthorizedUserWithSession(sessionID string) (sessions.User, error)
AuthorizedUserWithSession provides a mock function with given fields: sessionID
func (*AuthenticationProvider) ClearNonCurrentSessions ¶ added in v2.8.0
func (_m *AuthenticationProvider) ClearNonCurrentSessions(sessionID string) error
ClearNonCurrentSessions provides a mock function with given fields: sessionID
func (*AuthenticationProvider) CreateAndSetAuthToken ¶ added in v2.8.0
CreateAndSetAuthToken provides a mock function with given fields: user
func (*AuthenticationProvider) CreateSession ¶ added in v2.8.0
func (_m *AuthenticationProvider) CreateSession(sr sessions.SessionRequest) (string, error)
CreateSession provides a mock function with given fields: sr
func (*AuthenticationProvider) CreateUser ¶ added in v2.8.0
func (_m *AuthenticationProvider) CreateUser(user *sessions.User) error
CreateUser provides a mock function with given fields: user
func (*AuthenticationProvider) DeleteAuthToken ¶ added in v2.8.0
func (_m *AuthenticationProvider) DeleteAuthToken(user *sessions.User) error
DeleteAuthToken provides a mock function with given fields: user
func (*AuthenticationProvider) DeleteUser ¶ added in v2.8.0
func (_m *AuthenticationProvider) DeleteUser(email string) error
DeleteUser provides a mock function with given fields: email
func (*AuthenticationProvider) DeleteUserSession ¶ added in v2.8.0
func (_m *AuthenticationProvider) DeleteUserSession(sessionID string) error
DeleteUserSession provides a mock function with given fields: sessionID
func (*AuthenticationProvider) FindExternalInitiator ¶ added in v2.8.0
func (_m *AuthenticationProvider) FindExternalInitiator(eia *auth.Token) (*bridges.ExternalInitiator, error)
FindExternalInitiator provides a mock function with given fields: eia
func (*AuthenticationProvider) FindUser ¶ added in v2.8.0
func (_m *AuthenticationProvider) FindUser(email string) (sessions.User, error)
FindUser provides a mock function with given fields: email
func (*AuthenticationProvider) FindUserByAPIToken ¶ added in v2.8.0
func (_m *AuthenticationProvider) FindUserByAPIToken(apiToken string) (sessions.User, error)
FindUserByAPIToken provides a mock function with given fields: apiToken
func (*AuthenticationProvider) GetUserWebAuthn ¶ added in v2.8.0
func (_m *AuthenticationProvider) GetUserWebAuthn(email string) ([]sessions.WebAuthn, error)
GetUserWebAuthn provides a mock function with given fields: email
func (*AuthenticationProvider) ListUsers ¶ added in v2.8.0
func (_m *AuthenticationProvider) ListUsers() ([]sessions.User, error)
ListUsers provides a mock function with given fields:
func (*AuthenticationProvider) SaveWebAuthn ¶ added in v2.8.0
func (_m *AuthenticationProvider) SaveWebAuthn(token *sessions.WebAuthn) error
SaveWebAuthn provides a mock function with given fields: token
func (*AuthenticationProvider) Sessions ¶ added in v2.8.0
Sessions provides a mock function with given fields: offset, limit
func (*AuthenticationProvider) SetAuthToken ¶ added in v2.8.0
SetAuthToken provides a mock function with given fields: user, token
func (*AuthenticationProvider) SetPassword ¶ added in v2.8.0
func (_m *AuthenticationProvider) SetPassword(user *sessions.User, newPassword string) error
SetPassword provides a mock function with given fields: user, newPassword
func (*AuthenticationProvider) TestPassword ¶ added in v2.8.0
func (_m *AuthenticationProvider) TestPassword(email string, password string) error
TestPassword provides a mock function with given fields: email, password
func (*AuthenticationProvider) UpdateRole ¶ added in v2.8.0
UpdateRole provides a mock function with given fields: email, newRole
type BasicAdminUsersORM ¶ added in v2.8.0
BasicAdminUsersORM is an autogenerated mock type for the BasicAdminUsersORM type
func NewBasicAdminUsersORM ¶ added in v2.8.0
func NewBasicAdminUsersORM(t interface { mock.TestingT Cleanup(func()) }) *BasicAdminUsersORM
NewBasicAdminUsersORM creates a new instance of BasicAdminUsersORM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BasicAdminUsersORM) CreateUser ¶ added in v2.8.0
func (_m *BasicAdminUsersORM) CreateUser(user *sessions.User) error
CreateUser provides a mock function with given fields: user