/
o_auth2_consent_request.go
29 lines (22 loc) · 1.1 KB
/
o_auth2_consent_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* ORY Hydra - Cloud Native OAuth 2.0 and OpenID Connect Server
*
* Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. Keep in mind that this document reflects the latest branch, always. Support for versioned documentation is coming in the future.
*
* OpenAPI spec version: Latest
* Contact: hi@ory.am
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
package swagger
type OAuth2ConsentRequest struct {
// ClientID is the client id that initiated the OAuth2 request.
ClientId string `json:"clientId,omitempty"`
// ExpiresAt is the time where the access request will expire.
ExpiresAt string `json:"expiresAt,omitempty"`
// ID is the id of this consent request.
Id string `json:"id,omitempty"`
// Redirect URL is the URL where the user agent should be redirected to after the consent has been accepted or rejected.
RedirectUrl string `json:"redirectUrl,omitempty"`
// RequestedScopes represents a list of scopes that have been requested by the OAuth2 request initiator.
RequestedScopes []string `json:"requestedScopes,omitempty"`
}