mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-01 17:24:10 +01:00
Clarify that the Authorization header is preferred
This commit is contained in:
parent
b159f21857
commit
ca87876f1b
|
|
@ -207,6 +207,11 @@ support:
|
||||||
1. Via a query string parameter, ``access_token=TheTokenHere``.
|
1. Via a query string parameter, ``access_token=TheTokenHere``.
|
||||||
#. Via a request header, ``Authorization: Bearer TheTokenHere``.
|
#. Via a request header, ``Authorization: Bearer TheTokenHere``.
|
||||||
|
|
||||||
|
Clients are encouraged to use the ``Authorization`` header where possible
|
||||||
|
to prevent the access token being leaked in access/HTTP logs. The query
|
||||||
|
string should only be used in cases where the ``Authorization`` header is
|
||||||
|
unaccessible for the client.
|
||||||
|
|
||||||
When credentials are required but missing or invalid, the HTTP call will
|
When credentials are required but missing or invalid, the HTTP call will
|
||||||
return with a status of 401 and the error code, ``M_MISSING_TOKEN`` or
|
return with a status of 401 and the error code, ``M_MISSING_TOKEN`` or
|
||||||
``M_UNKNOWN_TOKEN`` respectively.
|
``M_UNKNOWN_TOKEN`` respectively.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue