-
Notifications
You must be signed in to change notification settings - Fork 1
/
oAuth2Types.raml
70 lines (70 loc) · 2.21 KB
/
oAuth2Types.raml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#%RAML 1.0 Library
usage: |
OAuth 2.0 response types. See [RFC 6749](https://tools.ietf.org/html/rfc6749)
types:
OAuth2success:
description: |
[RFC 6749 success response](https://tools.ietf.org/html/rfc6749#section-5.1)
type: object
properties:
access_token:
type: string
description: |
REQUIRED. The access token issued by the authorization server.
required: true
token_type:
type: string
description: |
REQUIRED. The type of the token issued:
required: true
enum:
- bearer
expires_in:
type: integer
description: |
RECOMMENDED. The lifetime in seconds of the access token.
required: false
refresh_token:
type: string
description: |
OPTIONAL. The refresh token, which can be used to obtain new
access tokens using the same authorization grant.
required: false
scope:
type: string
description: |
OPTIONAL, if identical to the scope requested by the client;
otherwise, REQUIRED.
required: false
additionalProperties: true
OAuth2error:
description: |
[RFC 6749 Error response](https://tools.ietf.org/html/rfc6749#section-5.2)
type: object
properties:
error:
type: string
description: |
REQUIRED. A single ASCII [USASCII] error code from the following:
enum:
- invalid_request
- invalid_client
- invalid_grant
- unauthorized_client
- unsupported_grant_type
required: true
error_description:
type: string
description: |
OPTIONAL. Human-readable ASCII [USASCII] text providing
additional information, used to assist the client developer in
understanding the error that occurred.
required: false
error_uri:
type: string
description: |
OPTIONAL. A URI identifying a human-readable web page with
information about the error, used to provide the client
developer with additional information about the error.
required: false
additionalProperties: false