30 lines
1013 B
Go
30 lines
1013 B
Go
package hydra
|
|
|
|
type AcceptLoginRequest struct {
|
|
Subject string `json:"subject"`
|
|
Remember bool `json:"remember"`
|
|
RememberFor int `json:"remember_for"`
|
|
ACR string `json:"acr"`
|
|
Context map[string]interface{} `json:"context"`
|
|
}
|
|
|
|
type AcceptLogoutRequest struct{}
|
|
|
|
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"`
|
|
}
|