-
Notifications
You must be signed in to change notification settings - Fork 4
/
token_schema.json
60 lines (60 loc) · 1.78 KB
/
token_schema.json
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON Web Token Contents",
"description": "Claims contained within JSON Web Token",
"type": "object",
"properties": {
"iss": {
"description": "The DNS name of the Authorization Server issuing the token",
"type": "string",
"format": "uri"
},
"sub": {
"description": "The unique identifier assigned to the end-user by the user authorization system",
"type": "string"
},
"aud": {
"description": "The fully qualified domain name of the intended recipient (Resource Server), or a domain name containing wild-card characters",
"type": "array",
"items": {
"type": "string"
}
},
"exp": {
"description": "The UTC time at which the token expires",
"type": "number"
},
"iat": {
"description": "The UTC time at which the token was issued",
"type": "number"
},
"client_id": {
"description": "The client identifier of the OAuth 2.0 client that requested the token",
"type": "string"
},
"scope": {
"description": "A string containing a space-separated list of scopes associated with the token",
"type": "string"
},
"x-nmos-api": {
"description": "An object containing the access permissions of the user for the listed NMOS APIs",
"type": "object",
"patternProperties": {
"[a-z_-]": {
"type": "object",
"minProperties": 1,
"patternProperties": {
"^read$|^write$": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
}
}
}
}
}
},
"required": ["iss", "sub", "aud", "exp", "client_id", "x-nmos-api"]
}