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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"lexicon": 1,
"id": "com.fedfork.exec.oauth.clientMetadata",
"defs": {
"main": {
"type": "record",
"key": "any",
"description": "OAuth client metadata template for an integration. A site acting as this client rebases every URL on the template origin onto its own origin and serves the result as its own client metadata document.",
"record": {
"type": "object",
"required": [
"name",
"clientMetadata",
"createdAt"
],
"properties": {
"name": {
"type": "string",
"maxLength": 2560,
"maxGraphemes": 256
},
"description": {
"type": "string",
"maxLength": 30000,
"maxGraphemes": 3000
},
"clientMetadata": {
"type": "ref",
"ref": "#clientMetadata"
},
"scopeGroups": {
"type": "array",
"maxLength": 256,
"description": "Optional subsets of the declared scope that a user can grant progressively.",
"items": {
"type": "ref",
"ref": "#scopeGroup"
}
},
"app": {
"type": "ref",
"ref": "#app",
"description": "The app's own identity, did:web:<the deployment's host>, and the records its read-only repo serves there for other services (dev.cocore.app.registration, ...), with the .well-known files they check. Strings on this record's client_id origin, and did:web:<that host>, become the deployment's when served."
},
"createdAt": {
"type": "string",
"format": "datetime"
}
}
}
},
"clientMetadata": {
"type": "object",
"required": [
"client_id",
"redirect_uris",
"scope"
],
"properties": {
"client_id": {
"type": "string",
"format": "uri"
},
"client_name": {
"type": "string",
"maxLength": 2560
},
"client_uri": {
"type": "string",
"format": "uri"
},
"logo_uri": {
"type": "string",
"format": "uri"
},
"tos_uri": {
"type": "string",
"format": "uri"
},
"policy_uri": {
"type": "string",
"format": "uri"
},
"redirect_uris": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"scope": {
"type": "string",
"maxLength": 65536
},
"grant_types": {
"type": "array",
"items": {
"type": "string"
}
},
"response_types": {
"type": "array",
"items": {
"type": "string"
}
},
"application_type": {
"type": "string"
},
"token_endpoint_auth_method": {
"type": "string"
},
"dpop_bound_access_tokens": {
"type": "boolean"
}
}
},
"scopeGroup": {
"type": "object",
"required": [
"key",
"label",
"scopes"
],
"properties": {
"key": {
"type": "string",
"maxLength": 256
},
"label": {
"type": "string",
"maxLength": 2560,
"maxGraphemes": 256
},
"scopes": {
"type": "array",
"maxLength": 1024,
"items": {
"type": "string",
"maxLength": 8192
}
},
"optional": {
"type": "boolean",
"description": "A session holds without these scopes: one signed in before they were added stays connected (it lacks only what they grant). A new sign-in asks for them."
}
}
},
"app": {
"type": "object",
"properties": {
"records": {
"type": "array",
"maxLength": 256,
"items": {
"type": "ref",
"ref": "#appRecord"
}
},
"wellKnown": {
"type": "unknown",
"description": "file name -> the JSON served at /.well-known/<file> (not did.json or atproto-did)."
}
}
},
"appRecord": {
"type": "object",
"required": [
"collection",
"rkey",
"value"
],
"properties": {
"collection": {
"type": "string",
"format": "nsid"
},
"rkey": {
"type": "string",
"format": "record-key"
},
"value": {
"type": "unknown",
"description": "The record: plain JSON, no blobs or links."
}
}
}
}
}