Skip to content

Commit

Permalink
Merge pull request #2030 from matrix-org/travis/1.0/bind-msisdn
Browse files Browse the repository at this point in the history
Spec MSISDN UIA support
  • Loading branch information
turt2live committed Jun 6, 2019
2 parents eb06e13 + 1bda3fe commit e1266b8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/client-server/registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ paths:
If true, the server binds the email used for authentication to
the Matrix ID with the identity server.
example: false
bind_msisdn:
type: boolean
description: |-
If true, the server binds the phone number used for authentication
to the Matrix ID with the identity server.
example: false
username:
type: string
description: |-
Expand Down
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/2030.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add MSISDN (phone number) support to User-Interactive Authentication.
29 changes: 29 additions & 0 deletions specification/client_server_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ This specification defines the following auth types:
- ``m.login.recaptcha``
- ``m.login.oauth2``
- ``m.login.email.identity``
- ``m.login.msisdn``
- ``m.login.token``
- ``m.login.dummy``

Expand Down Expand Up @@ -787,6 +788,34 @@ To use this authentication type, clients should submit an auth dict as follows:
"session": "<session ID>"
}
Phone number/MSISDN-based (identity server)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
:Type:
``m.login.msisdn``
:Description:
Authentication is supported by authorising a phone number with an identity
server.

Prior to submitting this, the client should authenticate with an identity
server. After authenticating, the session information should be submitted to
the homeserver.

To use this authentication type, clients should submit an auth dict as follows:

.. code:: json
{
"type": "m.login.msisdn",
"threepidCreds": [
{
"sid": "<identity server session id>",
"client_secret": "<identity server client secret>",
"id_server": "<url of identity server authed with, e.g. 'matrix.org:8090'>"
}
],
"session": "<session ID>"
}
Dummy Auth
<<<<<<<<<<
:Type:
Expand Down

0 comments on commit e1266b8

Please sign in to comment.