-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathjwt-token-schema.json
106 lines (106 loc) · 3.01 KB
/
jwt-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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"stk": {
"type": "string",
"description": "Security token key for session validation",
"example": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"user": {
"type": "string",
"description": "Username or user identifier",
"example": "anonymous_user"
},
"scope": {
"type": "array",
"description": "Scope of access or permissions",
"items": {
"type": "string"
},
"example": ["bsa-core"]
},
"uid": {
"type": "integer",
"description": "Unique user identifier",
"example": 9999999
},
"mid": {
"type": "string",
"description": "Membership ID associated with the user",
"example": "XXXXXXX"
},
"ugu": {
"type": "string",
"description": "User GUID",
"example": "XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
},
"pgu": {
"type": "string",
"description": "Person GUID",
"example": "XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
},
"orig": {
"type": "object",
"description": "The origin from where the request was initiated",
"properties": {
"uri": {
"type": "string",
"example": "https://advancements.scouting.org"
}
}
},
"dest": {
"type": "object",
"description": "Destination URIs or endpoints the token gives access to",
"properties": {
"uri": {
"type": "array",
"items": {
"type": "string"
},
"example": ["https://my.scouting.org", "https://api.scouting.org", "https://advancements.scouting.org"]
}
}
},
"amr": {
"type": "array",
"description": "Authentication methods used",
"items": {
"type": "string"
},
"example": ["st"]
},
"iat": {
"type": "integer",
"description": "Issued-at time, the timestamp when the token was generated",
"example": 1703770593
},
"exp": {
"type": "integer",
"description": "Expiration time of the token (Unix timestamp)",
"example": 1703799393
},
"aud": {
"type": "string",
"description": "Audience for which the token is intended",
"example": "bsa"
},
"iss": {
"type": "string",
"description": "Issuer of the token",
"example": "login-api"
},
"sub": {
"type": "string",
"description": "Subject of the token, often referring to the user",
"example": "credentials"
},
"jti": {
"type": "string",
"description": "JWT ID, a unique identifier for the token",
"example": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
},
"required": ["stk", "user", "uid", "iat", "exp", "aud", "iss", "sub", "jti"]
}