MSP-2370 implement admin/secure/authorize
This commit is contained in:
1 parent
db7a668875
commit
3b3fc9dcfb
20 files changed
+509
-177
No files matched your search
@@ -9,3 +9,12 @@ type SecureAuthResponse struct {
|
||||
ErrorReason string
|
||||
AdminId int64
|
||||
}
|
||||
|
||||
type SecureAuthzRequest struct {
|
||||
AdminId int
|
||||
Permission string
|
||||
}
|
||||
|
||||
type SecureAuthzResponse struct {
|
||||
Authorized bool
|
||||
}
|
||||
+7
-6
@@ -29,12 +29,13 @@ type UsersRequest struct {
|
||||
}
|
||||
|
||||
type AdminUserShort struct {
|
||||
FirstName string
|
||||
LastName string
|
||||
Email string `valid:"required"`
|
||||
Role string
|
||||
Roles []int
|
||||
Permissions []string
|
||||
FirstName string
|
||||
LastName string
|
||||
Email string `valid:"required"`
|
||||
Role string
|
||||
Roles []int
|
||||
Permissions []string
|
||||
IdleTimeoutMs int
|
||||
}
|
||||
|
||||
type CreateUserRequest struct {
|
||||
|
||||
Reference in new issue
Block a user