forked from ory/hydra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
warden_token_access_request_response.go
39 lines (29 loc) · 2.82 KB
/
warden_token_access_request_response.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
30
31
32
33
34
35
36
37
38
39
/*
* Hydra OAuth2 & OpenID Connect Server
*
* Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob/<tag-id>/docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml
*
* OpenAPI spec version: Latest
* Contact: hi@ory.am
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
package swagger
// The warden access request (with token) response
type WardenTokenAccessRequestResponse struct {
// Extra represents arbitrary session data.
AccessTokenExtra map[string]interface{} `json:"accessTokenExtra,omitempty"`
// Allowed is true if the request is allowed and false otherwise.
Allowed bool `json:"allowed,omitempty"`
// ClientID is the id of the OAuth2 client that requested the token.
ClientId string `json:"clientId,omitempty"`
// ExpiresAt is the expiry timestamp.
ExpiresAt string `json:"expiresAt,omitempty"`
// GrantedScopes is a list of scopes that the subject authorized when asked for consent.
GrantedScopes []string `json:"grantedScopes,omitempty"`
// IssuedAt is the token creation time stamp.
IssuedAt string `json:"issuedAt,omitempty"`
// Issuer is the id of the issuer, typically an hydra instance.
Issuer string `json:"issuer,omitempty"`
// Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too.
Subject string `json:"subject,omitempty"`
}