27 lines
861 B
Go
27 lines
861 B
Go
package hydra
|
|
|
|
type AcceptLoginRequest struct {
|
|
Subject string `json:"subject"`
|
|
Remember bool `json:"remember"`
|
|
RememberFor int `json:"remember_for"`
|
|
ACR string `json:"acr"`
|
|
}
|
|
|
|
type AcceptConsentRequest struct {
|
|
GrantScope []string `json:"grant_scope"`
|
|
GrantAccessTokenAudience []string `json:"grant_access_token_audience"`
|
|
Remember bool `json:"remember"`
|
|
RememberFor int `json:"remember_for"`
|
|
Session AcceptConsentSession `json:"session"`
|
|
}
|
|
|
|
type AcceptConsentSession struct {
|
|
AccessToken map[string]interface{} `json:"access_token"`
|
|
IDToken map[string]interface{} `json:"id_token"`
|
|
}
|
|
|
|
type RejectRequest struct {
|
|
Error string `json:"error"`
|
|
ErrorDescription string `json:"error_description"`
|
|
}
|