Litter the client-server API with id_access_token
This commit is contained in:
parent
4d0ea64121
commit
0408373cf9
7 changed files with 36 additions and 7 deletions
|
@ -110,10 +110,13 @@ paths:
|
||||||
id_server:
|
id_server:
|
||||||
type: string
|
type: string
|
||||||
description: The identity server to use.
|
description: The identity server to use.
|
||||||
|
id_access_token:
|
||||||
|
type: string
|
||||||
|
description: An access token previously registered with the identity server.
|
||||||
sid:
|
sid:
|
||||||
type: string
|
type: string
|
||||||
description: The session identifier given by the identity server.
|
description: The session identifier given by the identity server.
|
||||||
required: ["client_secret", "id_server", "sid"]
|
required: ["client_secret", "id_server", "id_access_token", "sid"]
|
||||||
bind:
|
bind:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |-
|
description: |-
|
||||||
|
@ -125,6 +128,7 @@ paths:
|
||||||
example: {
|
example: {
|
||||||
"three_pid_creds": {
|
"three_pid_creds": {
|
||||||
"id_server": "matrix.org",
|
"id_server": "matrix.org",
|
||||||
|
"id_access_token": "abc123_OpaqueString",
|
||||||
"sid": "abc123987",
|
"sid": "abc123987",
|
||||||
"client_secret": "d0n'tT3ll"
|
"client_secret": "d0n'tT3ll"
|
||||||
},
|
},
|
||||||
|
@ -189,6 +193,11 @@ paths:
|
||||||
homeserver does not know the original ``id_server``, it MUST return
|
homeserver does not know the original ``id_server``, it MUST return
|
||||||
a ``id_server_unbind_result`` of ``no-support``.
|
a ``id_server_unbind_result`` of ``no-support``.
|
||||||
example: "example.org"
|
example: "example.org"
|
||||||
|
id_access_token:
|
||||||
|
type: string
|
||||||
|
description: |-
|
||||||
|
An access token previously registered with the identity server. Required
|
||||||
|
if an ``id_server`` is specified.
|
||||||
medium:
|
medium:
|
||||||
type: string
|
type: string
|
||||||
description: The medium of the third party identifier being removed.
|
description: The medium of the third party identifier being removed.
|
||||||
|
|
|
@ -139,6 +139,9 @@ paths:
|
||||||
id_server:
|
id_server:
|
||||||
type: string
|
type: string
|
||||||
description: The hostname+port of the identity server which should be used for third party identifier lookups.
|
description: The hostname+port of the identity server which should be used for third party identifier lookups.
|
||||||
|
id_access_token:
|
||||||
|
type: string
|
||||||
|
description: An access token previously registered with the identity server.
|
||||||
medium:
|
medium:
|
||||||
type: string
|
type: string
|
||||||
# TODO: Link to Identity Service spec when it eixsts
|
# TODO: Link to Identity Service spec when it eixsts
|
||||||
|
@ -146,7 +149,7 @@ paths:
|
||||||
address:
|
address:
|
||||||
type: string
|
type: string
|
||||||
description: The invitee's third party identifier.
|
description: The invitee's third party identifier.
|
||||||
required: ["id_server", "medium", "address"]
|
required: ["id_server", "id_access_token", "medium", "address"]
|
||||||
room_version:
|
room_version:
|
||||||
type: string
|
type: string
|
||||||
description: |-
|
description: |-
|
||||||
|
|
|
@ -23,4 +23,7 @@ allOf:
|
||||||
include a port. This parameter is ignored when the homeserver handles
|
include a port. This parameter is ignored when the homeserver handles
|
||||||
3PID verification.
|
3PID verification.
|
||||||
example: "id.example.com"
|
example: "id.example.com"
|
||||||
required: ["id_server"]
|
id_access_token:
|
||||||
|
type: string
|
||||||
|
description: An access token previously registered with the identity server.
|
||||||
|
required: ["id_server", "id_access_token"]
|
||||||
|
|
|
@ -23,4 +23,7 @@ allOf:
|
||||||
include a port. This parameter is ignored when the homeserver handles
|
include a port. This parameter is ignored when the homeserver handles
|
||||||
3PID verification.
|
3PID verification.
|
||||||
example: "id.example.com"
|
example: "id.example.com"
|
||||||
required: ["id_server"]
|
id_access_token:
|
||||||
|
type: string
|
||||||
|
description: An access token previously registered with the identity server.
|
||||||
|
required: ["id_server", "id_access_token"]
|
||||||
|
|
|
@ -542,6 +542,11 @@ paths:
|
||||||
it must return an ``id_server_unbind_result`` of
|
it must return an ``id_server_unbind_result`` of
|
||||||
``no-support``.
|
``no-support``.
|
||||||
example: "example.org"
|
example: "example.org"
|
||||||
|
id_access_token:
|
||||||
|
type: string
|
||||||
|
description: |-
|
||||||
|
An access token previously registered with the identity server. Required if an
|
||||||
|
``id_server`` is supplied.
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: The account has been deactivated.
|
description: The account has been deactivated.
|
||||||
|
|
|
@ -92,6 +92,7 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
example: {
|
example: {
|
||||||
"id_server": "matrix.org",
|
"id_server": "matrix.org",
|
||||||
|
"id_access_token": "abc123_OpaqueString",
|
||||||
"medium": "email",
|
"medium": "email",
|
||||||
"address": "cheeky@monkey.com"
|
"address": "cheeky@monkey.com"
|
||||||
}
|
}
|
||||||
|
@ -99,6 +100,9 @@ paths:
|
||||||
id_server:
|
id_server:
|
||||||
type: string
|
type: string
|
||||||
description: The hostname+port of the identity server which should be used for third party identifier lookups.
|
description: The hostname+port of the identity server which should be used for third party identifier lookups.
|
||||||
|
id_access_token:
|
||||||
|
type: string
|
||||||
|
description: An access token previously registered with the identity server.
|
||||||
medium:
|
medium:
|
||||||
type: string
|
type: string
|
||||||
# TODO: Link to Identity Service spec when it eixsts
|
# TODO: Link to Identity Service spec when it eixsts
|
||||||
|
@ -106,7 +110,7 @@ paths:
|
||||||
address:
|
address:
|
||||||
type: string
|
type: string
|
||||||
description: The invitee's third party identifier.
|
description: The invitee's third party identifier.
|
||||||
required: ["id_server", "medium", "address"]
|
required: ["id_server", "id_access_token", "medium", "address"]
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: The user has been invited to join the room.
|
description: The user has been invited to join the room.
|
||||||
|
|
|
@ -802,7 +802,8 @@ To use this authentication type, clients should submit an auth dict as follows:
|
||||||
{
|
{
|
||||||
"sid": "<identity server session id>",
|
"sid": "<identity server session id>",
|
||||||
"client_secret": "<identity server client secret>",
|
"client_secret": "<identity server client secret>",
|
||||||
"id_server": "<url of identity server authed with, e.g. 'matrix.org:8090'>"
|
"id_server": "<url of identity server authed with, e.g. 'matrix.org:8090'>",
|
||||||
|
"id_access_token": "<access token previously registered with the identity server>"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"session": "<session ID>"
|
"session": "<session ID>"
|
||||||
|
@ -830,7 +831,8 @@ To use this authentication type, clients should submit an auth dict as follows:
|
||||||
{
|
{
|
||||||
"sid": "<identity server session id>",
|
"sid": "<identity server session id>",
|
||||||
"client_secret": "<identity server client secret>",
|
"client_secret": "<identity server client secret>",
|
||||||
"id_server": "<url of identity server authed with, e.g. 'matrix.org:8090'>"
|
"id_server": "<url of identity server authed with, e.g. 'matrix.org:8090'>",
|
||||||
|
"id_access_token": "<access token previously registered with the identity server>"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"session": "<session ID>"
|
"session": "<session ID>"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue