Merge pull request #2054 from matrix-org/travis/1.0/uia-clarifications
Clarify that UIA stages cannot be attempted twice
This commit is contained in:
commit
f4e85853d4
2 changed files with 8 additions and 5 deletions
|
@ -0,0 +1 @@
|
||||||
|
Clarify that User-Interactive Authentication stages cannot be attempted more than once.
|
|
@ -453,11 +453,10 @@ params
|
||||||
presented, that type may be present as a key in this dictionary. For example,
|
presented, that type may be present as a key in this dictionary. For example,
|
||||||
the public part of an OAuth client ID could be given here.
|
the public part of an OAuth client ID could be given here.
|
||||||
session
|
session
|
||||||
This is a session identifier that the client must pass back to the home
|
This is a session identifier that the client must pass back to the homeserver,
|
||||||
server, if one is provided, in subsequent attempts to authenticate in the same
|
if one is provided, in subsequent attempts to authenticate in the same API call.
|
||||||
API call.
|
|
||||||
|
|
||||||
The client then chooses a flow and attempts to complete one of the stages. It
|
The client then chooses a flow and attempts to complete the first stage. It
|
||||||
does this by resubmitting the same request with the addition of an ``auth``
|
does this by resubmitting the same request with the addition of an ``auth``
|
||||||
key in the object that it submits. This dictionary contains a ``type`` key whose
|
key in the object that it submits. This dictionary contains a ``type`` key whose
|
||||||
value is the name of the authentication type that the client is attempting to complete.
|
value is the name of the authentication type that the client is attempting to complete.
|
||||||
|
@ -558,7 +557,10 @@ message in the standard format. For example:
|
||||||
}
|
}
|
||||||
|
|
||||||
If the client has completed all stages of a flow, the homeserver performs the
|
If the client has completed all stages of a flow, the homeserver performs the
|
||||||
API call and returns the result as normal.
|
API call and returns the result as normal. Completed stages cannot be retried
|
||||||
|
by clients, therefore servers must return either a 401 response with the completed
|
||||||
|
stages, or the result of the API call if all stages were completed when a client
|
||||||
|
retries a stage.
|
||||||
|
|
||||||
Some authentication types may be completed by means other than through the
|
Some authentication types may be completed by means other than through the
|
||||||
Matrix client, for example, an email confirmation may be completed when the user
|
Matrix client, for example, an email confirmation may be completed when the user
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue