implement login with SUDIR auth code

This commit is contained in:
Мержанов Максим Владимирович committed 2021-07-06 11:15:57 +00:00
1 parent 6bac52cdea
commit dfc78ddc71
12 files changed
+381 -38

No files matched your search

+4 -2
View File
@@ -10,8 +10,9 @@ import (
type Handlers struct {
// ===== AUTH =====
Login func(structure.AuthRequest) (*structure.Auth, error) `method:"login" group:"auth" inner:"false"`
Logout func(metadata.MD) error `method:"logout" group:"auth" inner:"true"`
Login func(structure.AuthRequest) (*structure.Auth, error) `method:"login" group:"auth" inner:"false"`
LoginWithSudir func(structure.SudirAuthRequest) (*structure.Auth, error) `method:"login_with_sudir" group:"auth" inner:"false"`
Logout func(metadata.MD) error `method:"logout" group:"auth" inner:"true"`
// ===== USER =====
GetProfile func(metadata.MD) (*structure.AdminUserShort, error) `method:"get_profile" group:"user" inner:"true"`
@@ -27,6 +28,7 @@ func GetHandlers() []interface{} {
return []interface{}{
&Handlers{
Login: controller.Login,
LoginWithSudir: controller.LoginWithSudir,
Logout: controller.Logout,
GetProfile: controller.GetProfile,
GetUIDesign: controller.GetUIDesign,