Skip to content

Commit 7152e8f

Browse files
committed
profile.yaml: force sending access token on all requests
...to make sure those don't end up with 403 in cases like quotient-im/libQuotient#797
1 parent e2628d6 commit 7152e8f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

data/api/client-server/profile.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ paths:
7575
own displayname or to query the name of other users; either locally or
7676
on remote homeservers.
7777
operationId: getDisplayName
78+
security:
79+
- accessTokenQuery: []
80+
- accessTokenBearer: []
7881
parameters:
7982
- in: path
8083
name: userId
@@ -178,6 +181,9 @@ paths:
178181
own avatar URL or to query the URL of other users; either locally or
179182
on remote homeservers.
180183
operationId: getAvatarUrl
184+
security:
185+
- accessTokenQuery: []
186+
- accessTokenBearer: []
181187
parameters:
182188
- in: path
183189
name: userId
@@ -229,6 +235,9 @@ paths:
229235
to fetch the user's own profile information or other users; either
230236
locally or on remote homeservers.
231237
operationId: getUserProfile
238+
security:
239+
- accessTokenQuery: []
240+
- accessTokenBearer: []
232241
parameters:
233242
- in: path
234243
name: userId

0 commit comments

Comments
 (0)