Documentation ¶
Index ¶
- type AppIdentityProviderServiceInterface
- func (_m *AppIdentityProviderServiceInterface) FindByType(_a0 *models.Application, _a1 string) []*models.AppIdentityProvider
- func (_m *AppIdentityProviderServiceInterface) FindByTypeAndName(_a0 *models.Application, _a1 string, _a2 string) *models.AppIdentityProvider
- func (_m *AppIdentityProviderServiceInterface) Get(_a0 *models.Application, _a1 bson.ObjectId) *models.AppIdentityProvider
- func (_m *AppIdentityProviderServiceInterface) GetAllTemplates() []*models.AppIdentityProvider
- func (_m *AppIdentityProviderServiceInterface) GetAuthUrl(_a0 string, _a1 *models.AppIdentityProvider, _a2 interface{}) (string, error)
- func (_m *AppIdentityProviderServiceInterface) GetAvailableTemplates() []string
- func (_m *AppIdentityProviderServiceInterface) GetSocialProfile(_a0 context.Context, _a1 string, _a2 string, _a3 *models.AppIdentityProvider) (*models.UserIdentitySocial, error)
- func (_m *AppIdentityProviderServiceInterface) GetTemplate(_a0 string) (*models.AppIdentityProvider, error)
- func (_m *AppIdentityProviderServiceInterface) NormalizeSocialConnection(_a0 *models.AppIdentityProvider) error
- type ApplicationServiceInterface
- func (_m *ApplicationServiceInterface) AddIdentityProvider(_a0 *models.Application, _a1 *models.AppIdentityProvider) error
- func (_m *ApplicationServiceInterface) Create(_a0 *models.Application) error
- func (_m *ApplicationServiceInterface) Get(_a0 bson.ObjectId) (*models.Application, error)
- func (_m *ApplicationServiceInterface) LoadMfaConnection(_a0 string) ([]*models.MfaConnection, error)
- func (_m *ApplicationServiceInterface) LoadSocialSettings() (*models.SocialSettings, error)
- func (_m *ApplicationServiceInterface) Update(_a0 *models.Application) error
- func (_m *ApplicationServiceInterface) UpdateIdentityProvider(_a0 *models.Application, _a1 *models.AppIdentityProvider) error
- type AuthLogServiceInterface
- type HydraAdminApi
- func (_m *HydraAdminApi) AcceptConsentRequest(_a0 *admin.AcceptConsentRequestParams) (*admin.AcceptConsentRequestOK, error)
- func (_m *HydraAdminApi) AcceptLoginRequest(_a0 *admin.AcceptLoginRequestParams) (*admin.AcceptLoginRequestOK, error)
- func (_m *HydraAdminApi) CreateOAuth2Client(_a0 *admin.CreateOAuth2ClientParams) (*admin.CreateOAuth2ClientCreated, error)
- func (_m *HydraAdminApi) GetConsentRequest(_a0 *admin.GetConsentRequestParams) (*admin.GetConsentRequestOK, error)
- func (_m *HydraAdminApi) GetLoginRequest(_a0 *admin.GetLoginRequestParams) (*admin.GetLoginRequestOK, error)
- func (_m *HydraAdminApi) GetOAuth2Client(_a0 *admin.GetOAuth2ClientParams) (*admin.GetOAuth2ClientOK, error)
- func (_m *HydraAdminApi) IntrospectOAuth2Token(_a0 *admin.IntrospectOAuth2TokenParams, _a1 runtime.ClientAuthInfoWriter) (*admin.IntrospectOAuth2TokenOK, error)
- func (_m *HydraAdminApi) UpdateOAuth2Client(_a0 *admin.UpdateOAuth2ClientParams) (*admin.UpdateOAuth2ClientOK, error)
- type InternalRegistry
- func (_m *InternalRegistry) ApplicationService() service.ApplicationServiceInterface
- func (_m *InternalRegistry) HydraAdminApi() service.HydraAdminApi
- func (_m *InternalRegistry) Mailer() service.MailerInterface
- func (_m *InternalRegistry) MfaService() service.MfaApiInterface
- func (_m *InternalRegistry) MgoSession() database.MgoSession
- func (_m *InternalRegistry) OneTimeTokenService() service.OneTimeTokenServiceInterface
- func (_m *InternalRegistry) Watcher() persist.Watcher
- type MailerInterface
- type MfaApiInterface
- func (_m *MfaApiInterface) Check(ctx context.Context, in *proto.MfaCheckDataRequest, opts ...client.CallOption) (*proto.MfaCheckDataResponse, error)
- func (_m *MfaApiInterface) Create(ctx context.Context, in *proto.MfaCreateDataRequest, opts ...client.CallOption) (*proto.MfaCreateDataResponse, error)
- type MfaServiceInterface
- func (_m *MfaServiceInterface) Add(_a0 *models.MfaProvider) error
- func (_m *MfaServiceInterface) AddUserProvider(_a0 *models.MfaUserProvider) error
- func (_m *MfaServiceInterface) Get(_a0 bson.ObjectId) (*models.MfaProvider, error)
- func (_m *MfaServiceInterface) GetUserProviders(_a0 *models.User) ([]*models.MfaProvider, error)
- func (_m *MfaServiceInterface) List(_a0 bson.ObjectId) ([]*models.MfaProvider, error)
- func (_m *MfaServiceInterface) RemoveUserProvider(_a0 *models.MfaUserProvider) error
- type MgoSession
- type OneTimeTokenServiceInterface
- type SessionService
- type UserIdentityServiceInterface
- func (_m *UserIdentityServiceInterface) Create(_a0 *models.UserIdentity) error
- func (_m *UserIdentityServiceInterface) Get(_a0 *models.Application, _a1 *models.AppIdentityProvider, _a2 string) (*models.UserIdentity, error)
- func (_m *UserIdentityServiceInterface) Update(_a0 *models.UserIdentity) error
- type UserServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppIdentityProviderServiceInterface ¶
AppIdentityProviderServiceInterface is an autogenerated mock type for the AppIdentityProviderServiceInterface type
func (*AppIdentityProviderServiceInterface) FindByType ¶
func (_m *AppIdentityProviderServiceInterface) FindByType(_a0 *models.Application, _a1 string) []*models.AppIdentityProvider
FindByType provides a mock function with given fields: _a0, _a1
func (*AppIdentityProviderServiceInterface) FindByTypeAndName ¶
func (_m *AppIdentityProviderServiceInterface) FindByTypeAndName(_a0 *models.Application, _a1 string, _a2 string) *models.AppIdentityProvider
FindByTypeAndName provides a mock function with given fields: _a0, _a1, _a2
func (*AppIdentityProviderServiceInterface) Get ¶
func (_m *AppIdentityProviderServiceInterface) Get(_a0 *models.Application, _a1 bson.ObjectId) *models.AppIdentityProvider
Get provides a mock function with given fields: _a0, _a1
func (*AppIdentityProviderServiceInterface) GetAllTemplates ¶
func (_m *AppIdentityProviderServiceInterface) GetAllTemplates() []*models.AppIdentityProvider
GetAllTemplates provides a mock function with given fields:
func (*AppIdentityProviderServiceInterface) GetAuthUrl ¶
func (_m *AppIdentityProviderServiceInterface) GetAuthUrl(_a0 string, _a1 *models.AppIdentityProvider, _a2 interface{}) (string, error)
GetAuthUrl provides a mock function with given fields: _a0, _a1, _a2
func (*AppIdentityProviderServiceInterface) GetAvailableTemplates ¶
func (_m *AppIdentityProviderServiceInterface) GetAvailableTemplates() []string
GetAvailableTemplates provides a mock function with given fields:
func (*AppIdentityProviderServiceInterface) GetSocialProfile ¶
func (_m *AppIdentityProviderServiceInterface) GetSocialProfile(_a0 context.Context, _a1 string, _a2 string, _a3 *models.AppIdentityProvider) (*models.UserIdentitySocial, error)
GetSocialProfile provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*AppIdentityProviderServiceInterface) GetTemplate ¶
func (_m *AppIdentityProviderServiceInterface) GetTemplate(_a0 string) (*models.AppIdentityProvider, error)
GetTemplate provides a mock function with given fields: _a0
func (*AppIdentityProviderServiceInterface) NormalizeSocialConnection ¶
func (_m *AppIdentityProviderServiceInterface) NormalizeSocialConnection(_a0 *models.AppIdentityProvider) error
NormalizeSocialConnection provides a mock function with given fields: _a0
type ApplicationServiceInterface ¶
ApplicationServiceInterface is an autogenerated mock type for the ApplicationServiceInterface type
func (*ApplicationServiceInterface) AddIdentityProvider ¶
func (_m *ApplicationServiceInterface) AddIdentityProvider(_a0 *models.Application, _a1 *models.AppIdentityProvider) error
AddIdentityProvider provides a mock function with given fields: _a0, _a1
func (*ApplicationServiceInterface) Create ¶
func (_m *ApplicationServiceInterface) Create(_a0 *models.Application) error
Create provides a mock function with given fields: _a0
func (*ApplicationServiceInterface) Get ¶
func (_m *ApplicationServiceInterface) Get(_a0 bson.ObjectId) (*models.Application, error)
Get provides a mock function with given fields: _a0
func (*ApplicationServiceInterface) LoadMfaConnection ¶
func (_m *ApplicationServiceInterface) LoadMfaConnection(_a0 string) ([]*models.MfaConnection, error)
LoadMfaConnection provides a mock function with given fields: _a0
func (*ApplicationServiceInterface) LoadSocialSettings ¶
func (_m *ApplicationServiceInterface) LoadSocialSettings() (*models.SocialSettings, error)
LoadSocialSettings provides a mock function with given fields:
func (*ApplicationServiceInterface) Update ¶
func (_m *ApplicationServiceInterface) Update(_a0 *models.Application) error
Update provides a mock function with given fields: _a0
func (*ApplicationServiceInterface) UpdateIdentityProvider ¶
func (_m *ApplicationServiceInterface) UpdateIdentityProvider(_a0 *models.Application, _a1 *models.AppIdentityProvider) error
UpdateIdentityProvider provides a mock function with given fields: _a0, _a1
type AuthLogServiceInterface ¶
AuthLogServiceInterface is an autogenerated mock type for the AuthLogServiceInterface type
type HydraAdminApi ¶
HydraAdminApi is an autogenerated mock type for the HydraAdminApi type
func (*HydraAdminApi) AcceptConsentRequest ¶
func (_m *HydraAdminApi) AcceptConsentRequest(_a0 *admin.AcceptConsentRequestParams) (*admin.AcceptConsentRequestOK, error)
AcceptConsentRequest provides a mock function with given fields: _a0
func (*HydraAdminApi) AcceptLoginRequest ¶
func (_m *HydraAdminApi) AcceptLoginRequest(_a0 *admin.AcceptLoginRequestParams) (*admin.AcceptLoginRequestOK, error)
AcceptLoginRequest provides a mock function with given fields: _a0
func (*HydraAdminApi) CreateOAuth2Client ¶
func (_m *HydraAdminApi) CreateOAuth2Client(_a0 *admin.CreateOAuth2ClientParams) (*admin.CreateOAuth2ClientCreated, error)
CreateOAuth2Client provides a mock function with given fields: _a0
func (*HydraAdminApi) GetConsentRequest ¶
func (_m *HydraAdminApi) GetConsentRequest(_a0 *admin.GetConsentRequestParams) (*admin.GetConsentRequestOK, error)
GetConsentRequest provides a mock function with given fields: _a0
func (*HydraAdminApi) GetLoginRequest ¶
func (_m *HydraAdminApi) GetLoginRequest(_a0 *admin.GetLoginRequestParams) (*admin.GetLoginRequestOK, error)
GetLoginRequest provides a mock function with given fields: _a0
func (*HydraAdminApi) GetOAuth2Client ¶
func (_m *HydraAdminApi) GetOAuth2Client(_a0 *admin.GetOAuth2ClientParams) (*admin.GetOAuth2ClientOK, error)
GetOAuth2Client provides a mock function with given fields: _a0
func (*HydraAdminApi) IntrospectOAuth2Token ¶
func (_m *HydraAdminApi) IntrospectOAuth2Token(_a0 *admin.IntrospectOAuth2TokenParams, _a1 runtime.ClientAuthInfoWriter) (*admin.IntrospectOAuth2TokenOK, error)
IntrospectOAuth2Token provides a mock function with given fields: _a0, _a1
func (*HydraAdminApi) UpdateOAuth2Client ¶
func (_m *HydraAdminApi) UpdateOAuth2Client(_a0 *admin.UpdateOAuth2ClientParams) (*admin.UpdateOAuth2ClientOK, error)
UpdateOAuth2Client provides a mock function with given fields: _a0
type InternalRegistry ¶
InternalRegistry is an autogenerated mock type for the InternalRegistry type
func (*InternalRegistry) ApplicationService ¶
func (_m *InternalRegistry) ApplicationService() service.ApplicationServiceInterface
ApplicationService provides a mock function with given fields:
func (*InternalRegistry) HydraAdminApi ¶
func (_m *InternalRegistry) HydraAdminApi() service.HydraAdminApi
HydraAdminApi provides a mock function with given fields:
func (*InternalRegistry) Mailer ¶
func (_m *InternalRegistry) Mailer() service.MailerInterface
Mailer provides a mock function with given fields:
func (*InternalRegistry) MfaService ¶
func (_m *InternalRegistry) MfaService() service.MfaApiInterface
MfaService provides a mock function with given fields:
func (*InternalRegistry) MgoSession ¶
func (_m *InternalRegistry) MgoSession() database.MgoSession
MgoSession provides a mock function with given fields:
func (*InternalRegistry) OneTimeTokenService ¶
func (_m *InternalRegistry) OneTimeTokenService() service.OneTimeTokenServiceInterface
OneTimeTokenService provides a mock function with given fields:
func (*InternalRegistry) Watcher ¶
func (_m *InternalRegistry) Watcher() persist.Watcher
Watcher provides a mock function with given fields:
type MailerInterface ¶
MailerInterface is an autogenerated mock type for the MailerInterface type
type MfaApiInterface ¶
MfaApiInterface is an autogenerated mock type for the MfaApiInterface type
func (*MfaApiInterface) Check ¶
func (_m *MfaApiInterface) Check(ctx context.Context, in *proto.MfaCheckDataRequest, opts ...client.CallOption) (*proto.MfaCheckDataResponse, error)
Check provides a mock function with given fields: ctx, in, opts
func (*MfaApiInterface) Create ¶
func (_m *MfaApiInterface) Create(ctx context.Context, in *proto.MfaCreateDataRequest, opts ...client.CallOption) (*proto.MfaCreateDataResponse, error)
Create provides a mock function with given fields: ctx, in, opts
type MfaServiceInterface ¶
MfaServiceInterface is an autogenerated mock type for the MfaServiceInterface type
func (*MfaServiceInterface) Add ¶
func (_m *MfaServiceInterface) Add(_a0 *models.MfaProvider) error
Add provides a mock function with given fields: _a0
func (*MfaServiceInterface) AddUserProvider ¶
func (_m *MfaServiceInterface) AddUserProvider(_a0 *models.MfaUserProvider) error
AddUserProvider provides a mock function with given fields: _a0
func (*MfaServiceInterface) Get ¶
func (_m *MfaServiceInterface) Get(_a0 bson.ObjectId) (*models.MfaProvider, error)
Get provides a mock function with given fields: _a0
func (*MfaServiceInterface) GetUserProviders ¶
func (_m *MfaServiceInterface) GetUserProviders(_a0 *models.User) ([]*models.MfaProvider, error)
GetUserProviders provides a mock function with given fields: _a0
func (*MfaServiceInterface) List ¶
func (_m *MfaServiceInterface) List(_a0 bson.ObjectId) ([]*models.MfaProvider, error)
List provides a mock function with given fields: _a0
func (*MfaServiceInterface) RemoveUserProvider ¶
func (_m *MfaServiceInterface) RemoveUserProvider(_a0 *models.MfaUserProvider) error
RemoveUserProvider provides a mock function with given fields: _a0
type MgoSession ¶
MgoSession is an autogenerated mock type for the MgoSession type
func (*MgoSession) Close ¶
func (_m *MgoSession) Close()
Close provides a mock function with given fields:
func (*MgoSession) Copy ¶
func (_m *MgoSession) Copy() *mgo.Session
Copy provides a mock function with given fields:
type OneTimeTokenServiceInterface ¶
OneTimeTokenServiceInterface is an autogenerated mock type for the OneTimeTokenServiceInterface type
func (*OneTimeTokenServiceInterface) Create ¶
func (_m *OneTimeTokenServiceInterface) Create(_a0 interface{}, _a1 *models.OneTimeTokenSettings) (*models.OneTimeToken, error)
Create provides a mock function with given fields: _a0, _a1
func (*OneTimeTokenServiceInterface) Get ¶
func (_m *OneTimeTokenServiceInterface) Get(_a0 string, _a1 interface{}) error
Get provides a mock function with given fields: _a0, _a1
func (*OneTimeTokenServiceInterface) Use ¶
func (_m *OneTimeTokenServiceInterface) Use(_a0 string, _a1 interface{}) error
Use provides a mock function with given fields: _a0, _a1
type SessionService ¶
SessionService is an autogenerated mock type for the SessionService type
type UserIdentityServiceInterface ¶
UserIdentityServiceInterface is an autogenerated mock type for the UserIdentityServiceInterface type
func (*UserIdentityServiceInterface) Create ¶
func (_m *UserIdentityServiceInterface) Create(_a0 *models.UserIdentity) error
Create provides a mock function with given fields: _a0
func (*UserIdentityServiceInterface) Get ¶
func (_m *UserIdentityServiceInterface) Get(_a0 *models.Application, _a1 *models.AppIdentityProvider, _a2 string) (*models.UserIdentity, error)
Get provides a mock function with given fields: _a0, _a1, _a2
func (*UserIdentityServiceInterface) Update ¶
func (_m *UserIdentityServiceInterface) Update(_a0 *models.UserIdentity) error
Update provides a mock function with given fields: _a0
type UserServiceInterface ¶
UserServiceInterface is an autogenerated mock type for the UserServiceInterface type
func (*UserServiceInterface) Create ¶
func (_m *UserServiceInterface) Create(_a0 *models.User) error
Create provides a mock function with given fields: _a0
Source Files ¶
- AppIdentityProviderServiceInterface.go
- ApplicationServiceInterface.go
- AuthLogServiceInterface.go
- HydraAdminApi.go
- InternalRegistry.go
- MailerInterface.go
- MfaApiInterface.go
- MfaServiceInterface.go
- MgoSession.go
- OneTimeTokenServiceInterface.go
- SessionService.go
- UserIdentityServiceInterface.go
- UserServiceInterface.go