Documentation
¶
Index ¶
- Variables
- type ChangePasswordSettings
- type Controller
- func (c *Controller) Callback(ctx context.Context, authSetting *types.AuthSetting, code string) (*types.TokenResponse, error)
- func (c *Controller) GetByProvider(ctx context.Context, provider enum.AuthProvider) (*types.AuthSetting, error)
- func (c *Controller) GetDemoUser(ctx context.Context, instance *types.Instance) (*types.DemoUser, error)
- func (c *Controller) GetRedirectUrl(ctx context.Context, authSetting *types.AuthSetting) (string, error)
- func (c *Controller) Init(ctx context.Context) error
- func (c *Controller) ListAllMap(ctx context.Context) (map[enum.AuthProvider]*types.AuthSetting, error)
- func (c *Controller) ListEnabled(ctx context.Context) (map[enum.AuthProvider]*types.AuthSetting, error)
- func (c *Controller) Login(ctx context.Context, instance *types.Instance, in *LoginInput) (*types.TokenResponse, error)
- func (c *Controller) Logout(ctx context.Context, session *auth.Session) error
- func (c *Controller) Register(ctx context.Context, in *RegisterUserInput) (*types.TokenResponse, error)
- func (c *Controller) UpdateDemoUserAuth(ctx context.Context, in *DemoUserSettings) error
- func (c *Controller) UpdateOauthSettings(ctx context.Context, auth *types.AuthSetting, provider enum.AuthProvider) error
- func (c *Controller) UpdatePasswordSettings(ctx context.Context, in *ChangePasswordSettings) error
- type DemoUserSettings
- type LoginInput
- type RegisterUserInput
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
Functions ¶
This section is empty.
Types ¶
type ChangePasswordSettings ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New( tx dbtx.Transactor, instanceCtrl *instance.Controller, userCtrl *user.Controller, tenantCtrl *tenant.Controller, tokenStore store.TokenStore, authSettingStore store.AuthSettingsStore, ) *Controller
func ProvideController ¶
func ProvideController( tx dbtx.Transactor, instanceCtrl *instance.Controller, userCtrl *user.Controller, tenantCtrl *tenant.Controller, tokenStore store.TokenStore, authSettingStore store.AuthSettingsStore, ) *Controller
func (*Controller) Callback ¶
func (c *Controller) Callback(ctx context.Context, authSetting *types.AuthSetting, code string) (*types.TokenResponse, error)
func (*Controller) GetByProvider ¶
func (c *Controller) GetByProvider(ctx context.Context, provider enum.AuthProvider) (*types.AuthSetting, error)
func (*Controller) GetDemoUser ¶
func (*Controller) GetRedirectUrl ¶
func (c *Controller) GetRedirectUrl(ctx context.Context, authSetting *types.AuthSetting) (string, error)
func (*Controller) ListAllMap ¶
func (c *Controller) ListAllMap(ctx context.Context) (map[enum.AuthProvider]*types.AuthSetting, error)
func (*Controller) ListEnabled ¶
func (c *Controller) ListEnabled(ctx context.Context) (map[enum.AuthProvider]*types.AuthSetting, error)
func (*Controller) Login ¶
func (c *Controller) Login(ctx context.Context, instance *types.Instance, in *LoginInput) (*types.TokenResponse, error)
func (*Controller) Register ¶
func (c *Controller) Register(ctx context.Context, in *RegisterUserInput) (*types.TokenResponse, error)
func (*Controller) UpdateDemoUserAuth ¶
func (c *Controller) UpdateDemoUserAuth(ctx context.Context, in *DemoUserSettings) error
func (*Controller) UpdateOauthSettings ¶
func (c *Controller) UpdateOauthSettings(ctx context.Context, auth *types.AuthSetting, provider enum.AuthProvider) error
func (*Controller) UpdatePasswordSettings ¶
func (c *Controller) UpdatePasswordSettings(ctx context.Context, in *ChangePasswordSettings) error
TODO: looks clumsy, check if you can reformat
type DemoUserSettings ¶
type DemoUserSettings struct {
DemoUserEnabled bool `json:"demo_user_enabled,string,omitempty"`
}
type LoginInput ¶
Click to show internal directories.
Click to hide internal directories.