MSP-437 add system service domains

This commit is contained in:
d1slike committed 2022-07-27 10:44:07 +03:00
1 parent 12908ef2dc
commit 963d8a1dfe
2 files changed
+28

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
package domain
type AuthData struct {
SystemId int
DomainId int
ServiceId int
ApplicationId int
}
+20
View File
@@ -0,0 +1,20 @@
package domain
type AuthenticateRequest struct {
Token string
}
type AuthenticateResponse struct {
Authenticated bool
ErrorReason string
AuthData *AuthData
}
type AuthorizeRequest struct {
ApplicationId int
Endpoint string
}
type AuthorizeResponse struct {
Authorized bool
}