Documentation ¶
Index ¶
- type AdminAccount
- type Config
- func (c *Config) GetApplicationAdminData() (*accountEntities.Account, error)
- func (c *Config) GetAuthenticationType() auth.AuthenticationType
- func (c *Config) GetDefaultUserData() (*accountEntities.Account, error)
- func (c *Config) GetEnableApplicationAdmin() bool
- func (c *Config) GetEnableDefaultUser() bool
- func (c *Config) GetHorusecAuthURL() string
- func (c *Config) GetHorusecManagerURL() string
- func (c *Config) IsApplicationAdmEnabled() bool
- func (c *Config) IsEmailsDisabled() bool
- func (c *Config) ToConfigResponse() map[string]interface{}
- func (c *Config) ToGetAuthConfigResponse() *proto.GetAuthConfigResponse
- type IConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminAccount ¶
type AdminAccount interface {
CreateOrUpdate(account *accountEntities.Account) error
}
type Config ¶
type Config struct { HorusecAuthURL string AuthType auth.AuthenticationType DisableEmails bool EnableApplicationAdmin bool ApplicationAdminData string EnableDefaultUser bool DefaultUserData string HorusecManagerURL string // contains filtered or unexported fields }
func (*Config) GetApplicationAdminData ¶
func (c *Config) GetApplicationAdminData() (*accountEntities.Account, error)
func (*Config) GetAuthenticationType ¶
func (c *Config) GetAuthenticationType() auth.AuthenticationType
func (*Config) GetDefaultUserData ¶
func (c *Config) GetDefaultUserData() (*accountEntities.Account, error)
func (*Config) GetEnableApplicationAdmin ¶
func (*Config) GetEnableDefaultUser ¶
func (*Config) GetHorusecAuthURL ¶
func (*Config) GetHorusecManagerURL ¶
func (*Config) IsApplicationAdmEnabled ¶
func (*Config) IsEmailsDisabled ¶
func (*Config) ToConfigResponse ¶
func (*Config) ToGetAuthConfigResponse ¶
func (c *Config) ToGetAuthConfigResponse() *proto.GetAuthConfigResponse
type IConfig ¶
type IConfig interface { GetAuthenticationType() auth.AuthenticationType ToConfigResponse() map[string]interface{} IsApplicationAdmEnabled() bool IsEmailsDisabled() bool ToGetAuthConfigResponse() *proto.GetAuthConfigResponse GetHorusecAuthURL() string GetHorusecManagerURL() string GetEnableApplicationAdmin() bool GetEnableDefaultUser() bool GetDefaultUserData() (*accountEntities.Account, error) GetApplicationAdminData() (*accountEntities.Account, error) }
func NewAuthAppConfig ¶
func NewAuthAppConfig(connection *database.Connection) IConfig
Click to show internal directories.
Click to hide internal directories.