update code (add OIDC client to CASAOS)

This commit is contained in:
2024-08-10 12:36:08 +07:00
parent 5f1a220316
commit 634c492519
13 changed files with 646 additions and 134 deletions
+23
View File
@@ -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"`
}