Documentation ¶
Index ¶
- type AuthenticationProvider
- func (_m *AuthenticationProvider) AuthorizedUserWithSession(ctx context.Context, sessionID string) (sessions.User, error)
- func (_m *AuthenticationProvider) ClearNonCurrentSessions(ctx context.Context, sessionID string) error
- func (_m *AuthenticationProvider) CreateAndSetAuthToken(ctx context.Context, user *sessions.User) (*auth.Token, error)
- func (_m *AuthenticationProvider) CreateSession(ctx context.Context, sr sessions.SessionRequest) (string, error)
- func (_m *AuthenticationProvider) CreateUser(ctx context.Context, user *sessions.User) error
- func (_m *AuthenticationProvider) DeleteAuthToken(ctx context.Context, user *sessions.User) error
- func (_m *AuthenticationProvider) DeleteUser(ctx context.Context, email string) error
- func (_m *AuthenticationProvider) DeleteUserSession(ctx context.Context, sessionID string) error
- func (_m *AuthenticationProvider) FindExternalInitiator(ctx context.Context, eia *auth.Token) (*bridges.ExternalInitiator, error)
- func (_m *AuthenticationProvider) FindUser(ctx context.Context, email string) (sessions.User, error)
- func (_m *AuthenticationProvider) FindUserByAPIToken(ctx context.Context, apiToken string) (sessions.User, error)
- func (_m *AuthenticationProvider) GetUserWebAuthn(ctx context.Context, email string) ([]sessions.WebAuthn, error)
- func (_m *AuthenticationProvider) ListUsers(ctx context.Context) ([]sessions.User, error)
- func (_m *AuthenticationProvider) SaveWebAuthn(ctx context.Context, token *sessions.WebAuthn) error
- func (_m *AuthenticationProvider) Sessions(ctx context.Context, offset int, limit int) ([]sessions.Session, error)
- func (_m *AuthenticationProvider) SetAuthToken(ctx context.Context, user *sessions.User, token *auth.Token) error
- func (_m *AuthenticationProvider) SetPassword(ctx context.Context, user *sessions.User, newPassword string) error
- func (_m *AuthenticationProvider) TestPassword(ctx context.Context, email string, password string) error
- func (_m *AuthenticationProvider) UpdateRole(ctx context.Context, 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(ctx context.Context, sessionID string) (sessions.User, error)
AuthorizedUserWithSession provides a mock function with given fields: ctx, sessionID
func (*AuthenticationProvider) ClearNonCurrentSessions ¶ added in v2.8.0
func (_m *AuthenticationProvider) ClearNonCurrentSessions(ctx context.Context, sessionID string) error
ClearNonCurrentSessions provides a mock function with given fields: ctx, sessionID
func (*AuthenticationProvider) CreateAndSetAuthToken ¶ added in v2.8.0
func (_m *AuthenticationProvider) CreateAndSetAuthToken(ctx context.Context, user *sessions.User) (*auth.Token, error)
CreateAndSetAuthToken provides a mock function with given fields: ctx, user
func (*AuthenticationProvider) CreateSession ¶ added in v2.8.0
func (_m *AuthenticationProvider) CreateSession(ctx context.Context, sr sessions.SessionRequest) (string, error)
CreateSession provides a mock function with given fields: ctx, sr
func (*AuthenticationProvider) CreateUser ¶ added in v2.8.0
CreateUser provides a mock function with given fields: ctx, user
func (*AuthenticationProvider) DeleteAuthToken ¶ added in v2.8.0
DeleteAuthToken provides a mock function with given fields: ctx, user
func (*AuthenticationProvider) DeleteUser ¶ added in v2.8.0
func (_m *AuthenticationProvider) DeleteUser(ctx context.Context, email string) error
DeleteUser provides a mock function with given fields: ctx, email
func (*AuthenticationProvider) DeleteUserSession ¶ added in v2.8.0
func (_m *AuthenticationProvider) DeleteUserSession(ctx context.Context, sessionID string) error
DeleteUserSession provides a mock function with given fields: ctx, sessionID
func (*AuthenticationProvider) FindExternalInitiator ¶ added in v2.8.0
func (_m *AuthenticationProvider) FindExternalInitiator(ctx context.Context, eia *auth.Token) (*bridges.ExternalInitiator, error)
FindExternalInitiator provides a mock function with given fields: ctx, eia
func (*AuthenticationProvider) FindUser ¶ added in v2.8.0
func (_m *AuthenticationProvider) FindUser(ctx context.Context, email string) (sessions.User, error)
FindUser provides a mock function with given fields: ctx, email
func (*AuthenticationProvider) FindUserByAPIToken ¶ added in v2.8.0
func (_m *AuthenticationProvider) FindUserByAPIToken(ctx context.Context, apiToken string) (sessions.User, error)
FindUserByAPIToken provides a mock function with given fields: ctx, apiToken
func (*AuthenticationProvider) GetUserWebAuthn ¶ added in v2.8.0
func (_m *AuthenticationProvider) GetUserWebAuthn(ctx context.Context, email string) ([]sessions.WebAuthn, error)
GetUserWebAuthn provides a mock function with given fields: ctx, email
func (*AuthenticationProvider) ListUsers ¶ added in v2.8.0
ListUsers provides a mock function with given fields: ctx
func (*AuthenticationProvider) SaveWebAuthn ¶ added in v2.8.0
SaveWebAuthn provides a mock function with given fields: ctx, token
func (*AuthenticationProvider) Sessions ¶ added in v2.8.0
func (_m *AuthenticationProvider) Sessions(ctx context.Context, offset int, limit int) ([]sessions.Session, error)
Sessions provides a mock function with given fields: ctx, offset, limit
func (*AuthenticationProvider) SetAuthToken ¶ added in v2.8.0
func (_m *AuthenticationProvider) SetAuthToken(ctx context.Context, user *sessions.User, token *auth.Token) error
SetAuthToken provides a mock function with given fields: ctx, user, token
func (*AuthenticationProvider) SetPassword ¶ added in v2.8.0
func (_m *AuthenticationProvider) SetPassword(ctx context.Context, user *sessions.User, newPassword string) error
SetPassword provides a mock function with given fields: ctx, user, newPassword
func (*AuthenticationProvider) TestPassword ¶ added in v2.8.0
func (_m *AuthenticationProvider) TestPassword(ctx context.Context, email string, password string) error
TestPassword provides a mock function with given fields: ctx, email, password
func (*AuthenticationProvider) UpdateRole ¶ added in v2.8.0
func (_m *AuthenticationProvider) UpdateRole(ctx context.Context, email string, newRole string) (sessions.User, error)
UpdateRole provides a mock function with given fields: ctx, 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
CreateUser provides a mock function with given fields: ctx, user