MSP-634 implement secure domain
This commit is contained in:
1 parent
e5d73d91de
commit
cbc9d0643a
1 file changed
+27
@@ -0,0 +1,27 @@
|
||||
package domain
|
||||
|
||||
type AuthenticateRequest struct {
|
||||
Token string `valid:"required~Required"`
|
||||
}
|
||||
|
||||
type AuthenticateResponse struct {
|
||||
Authenticated bool
|
||||
ErrorReason string
|
||||
AuthData *AuthData
|
||||
}
|
||||
|
||||
type AuthData struct {
|
||||
SystemId int
|
||||
DomainId int
|
||||
ServiceId int
|
||||
ApplicationId int
|
||||
}
|
||||
|
||||
type AuthorizeRequest struct {
|
||||
ApplicationId int `valid:"required~Required"`
|
||||
Endpoint string `valid:"required~Required"`
|
||||
}
|
||||
|
||||
type AuthorizeResponse struct {
|
||||
Authorized bool
|
||||
}
|
||||
Reference in new issue
Block a user