Add Linking HTTP API
Also add note on masquerading problem.
This commit is contained in:
parent
0313397e42
commit
1b3e27a05a
1 changed files with 22 additions and 0 deletions
|
@ -156,6 +156,8 @@ Linking ``[Draft]``
|
||||||
user they claim to be? If we force an IS lookup, then this would resolve on its
|
user they claim to be? If we force an IS lookup, then this would resolve on its
|
||||||
own as anyone who wants to talk to the virtual user will do a lookup before trying
|
own as anyone who wants to talk to the virtual user will do a lookup before trying
|
||||||
the application service...
|
the application service...
|
||||||
|
- In other words, what is preventing ``@bob:matrix.org`` masquerading as
|
||||||
|
``@.irc.freenode.alice:matrix.org``?
|
||||||
|
|
||||||
Clients may want to link their matrix user ID to their virtual user ID. This
|
Clients may want to link their matrix user ID to their virtual user ID. This
|
||||||
API allows the AS to do this, so messages sent from the AS are sent as the client's
|
API allows the AS to do this, so messages sent from the AS are sent as the client's
|
||||||
|
@ -187,6 +189,21 @@ Notes:
|
||||||
- The generated access token MUST honour the restrictions laid out by the
|
- The generated access token MUST honour the restrictions laid out by the
|
||||||
client.
|
client.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
PUT /appservices/$virtual_user_id?access_token=$token
|
||||||
|
|
||||||
|
Request format
|
||||||
|
{
|
||||||
|
restrictions: {
|
||||||
|
expires_in: 3600,
|
||||||
|
rooms: [
|
||||||
|
"!fl3rwfehw:matrix.org",
|
||||||
|
"!fwet2yugs:matrix.org"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
To revoke permission for an application service to masquerade as a user:
|
To revoke permission for an application service to masquerade as a user:
|
||||||
|
|
||||||
Inputs:
|
Inputs:
|
||||||
|
@ -199,6 +216,11 @@ Side effects:
|
||||||
- The home server invalidate all access tokens for this user ID / AS combo
|
- The home server invalidate all access tokens for this user ID / AS combo
|
||||||
and push this invalidation to the application service if this response 200s.
|
and push this invalidation to the application service if this response 200s.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
DELETE /appservices/$virtual_user_id?access_token=$token
|
||||||
|
|
||||||
|
|
||||||
Client-Server v2 API Extensions
|
Client-Server v2 API Extensions
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue