File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
changelogs/application_service/newsfragments Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ Add missing definition for how appservices verify requests came from a homeserver.
Original file line number Diff line number Diff line change @@ -187,6 +187,15 @@ An example registration file for an IRC-bridging application service is below:
187
187
Homeserver -> Application Service API
188
188
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
189
189
190
+ Authorization
191
+ +++++++++++++
192
+
193
+ Homeservers MUST include a query parameter named ``access_token `` containing the
194
+ ``hs_token `` from the application service's registration when making requests to
195
+ the application service. Application services MUST verify the provided ``access_token ``
196
+ matches their known ``hs_token ``, failing the request with a ``M_FORBIDDEN `` error
197
+ if it does not match.
198
+
190
199
Legacy routes
191
200
+++++++++++++
192
201
You can’t perform that action at this time.
0 commit comments