2020-04-24 09:27:07 +02:00
|
|
|
package hydra
|
|
|
|
|
2020-05-20 11:13:14 +02:00
|
|
|
type AcceptLoginRequest struct {
|
2020-04-24 09:27:07 +02:00
|
|
|
Subject string `json:"subject"`
|
|
|
|
Remember bool `json:"remember"`
|
|
|
|
RememberFor int `json:"remember_for"`
|
|
|
|
ACR string `json:"acr"`
|
|
|
|
}
|
|
|
|
|
2020-05-20 11:13:14 +02:00
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
2020-04-24 09:27:07 +02:00
|
|
|
type RejectRequest struct {
|
|
|
|
Error string `json:"error"`
|
|
|
|
ErrorDescription string `json:"error_description"`
|
|
|
|
}
|