36 lines
571 B
Go
36 lines
571 B
Go
package domain
|
|
|
|
type AuthenticateAppResponse struct {
|
|
Authenticated bool
|
|
ErrorReason string
|
|
AuthData *AppAuthData
|
|
}
|
|
|
|
type AppAuthData struct {
|
|
AppName string
|
|
ApplicationId int
|
|
}
|
|
|
|
type ApplicationToken struct {
|
|
AppToken string
|
|
AppName string
|
|
}
|
|
|
|
type UserToken struct {
|
|
Token string
|
|
}
|
|
|
|
type AuthenticateUserResponse struct {
|
|
Authenticated bool
|
|
SkipUserAuth bool
|
|
ErrorReason string
|
|
AuthData *UserAuthData
|
|
}
|
|
|
|
type UserAuthData struct {
|
|
SkipAppAuth bool
|
|
Identity string
|
|
IdentityHeader string
|
|
ExtraHeaders map[string][]string
|
|
}
|