mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
update code (add OIDC client to CASAOS)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package model
|
||||
|
||||
type OMVLogin struct {
|
||||
Response struct {
|
||||
Authenticated bool `json:"authenticated"`
|
||||
Username string `json:"username"`
|
||||
Permissions struct {
|
||||
Role string `json:"role"`
|
||||
} `json:"permissions"`
|
||||
SessionID string `json:"sessionid"`
|
||||
} `json:"response"`
|
||||
Error interface{} `json:"error"`
|
||||
}
|
||||
type OMVUser struct {
|
||||
Response struct {
|
||||
Authenticated bool `json:"authenticated"`
|
||||
Username string `json:"username"`
|
||||
Permissions struct {
|
||||
Role string `json:"role"`
|
||||
} `json:"permissions"`
|
||||
} `json:"response"`
|
||||
Error interface{} `json:"error"`
|
||||
}
|
||||
Reference in New Issue
Block a user