hydra-passwordless/internal/hydra/request.go

30 lines
1013 B
Go
Raw Normal View History

2020-04-24 09:27:07 +02:00
package hydra
2020-05-20 11:13:14 +02:00
type AcceptLoginRequest struct {
2020-05-26 11:11:53 +02:00
Subject string `json:"subject"`
Remember bool `json:"remember"`
RememberFor int `json:"remember_for"`
ACR string `json:"acr"`
Context map[string]interface{} `json:"context"`
2020-04-24 09:27:07 +02:00
}
2020-05-26 11:11:53 +02:00
type AcceptLogoutRequest struct{}
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"`
}