27 lines
427 B
Go
27 lines
427 B
Go
package entity
|
|
|
|
type UserAuthenticateRequest struct {
|
|
Token string
|
|
}
|
|
|
|
type UserAuthenticateResponse struct {
|
|
Authenticated bool
|
|
ErrorReason string
|
|
AuthData *UserAuthData
|
|
}
|
|
|
|
type UserAuthData struct {
|
|
Identity string
|
|
IdentityHeader string
|
|
ExtraHeaders map[string][]string
|
|
}
|
|
|
|
type UserAuthorizeRequest struct {
|
|
Identity string
|
|
Permission string
|
|
}
|
|
|
|
type UserAuthorizeResponse struct {
|
|
Authorized bool
|
|
}
|