mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 19:44:09 +01:00
Add Authorization: Bearer variant of security schemes for identity API
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
2fab7f78bd
commit
173240dc74
|
|
@ -11,8 +11,17 @@
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
accessToken:
|
accessTokenQuery:
|
||||||
type: apiKey
|
type: apiKey
|
||||||
description: The access_token returned by a call to `/register`.
|
description: |-
|
||||||
|
The `access_token` returned by a call to `/register`, as a query parameter.
|
||||||
name: access_token
|
name: access_token
|
||||||
in: query
|
in: query
|
||||||
|
accessTokenBearer:
|
||||||
|
type: http
|
||||||
|
description: |-
|
||||||
|
The `access_token` returned by a call to `/register`, using the
|
||||||
|
`Authorization: Bearer` header.
|
||||||
|
|
||||||
|
This is the preferred method.
|
||||||
|
scheme: bearer
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,8 @@ paths:
|
||||||
description: Determines if a given 3pid has been validated by a user.
|
description: Determines if a given 3pid has been validated by a user.
|
||||||
operationId: getValidated3pidV2
|
operationId: getValidated3pidV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
parameters:
|
parameters:
|
||||||
- in: query
|
- in: query
|
||||||
name: sid
|
name: sid
|
||||||
|
|
@ -128,7 +129,8 @@ paths:
|
||||||
deprecated.
|
deprecated.
|
||||||
operationId: bindV2
|
operationId: bindV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
@ -279,7 +281,8 @@ paths:
|
||||||
homeserver is acting on behalf of a client.
|
homeserver is acting on behalf of a client.
|
||||||
operationId: unbindV2
|
operationId: unbindV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,8 @@ paths:
|
||||||
request.
|
request.
|
||||||
operationId: getAccount
|
operationId: getAccount
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The token holder's information.
|
description: The token holder's information.
|
||||||
|
|
@ -99,7 +100,8 @@ paths:
|
||||||
future requests to the server.
|
future requests to the server.
|
||||||
operationId: logout
|
operationId: logout
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The token was successfully logged out.
|
description: The token was successfully logged out.
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,8 @@ paths:
|
||||||
deprecated.
|
deprecated.
|
||||||
operationId: emailRequestTokenV2
|
operationId: emailRequestTokenV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
@ -107,7 +108,8 @@ paths:
|
||||||
deprecated.
|
deprecated.
|
||||||
operationId: emailSubmitTokenPostV2
|
operationId: emailSubmitTokenPostV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
@ -180,7 +182,8 @@ paths:
|
||||||
used by end-users, and so the response should be human-readable.
|
used by end-users, and so the response should be human-readable.
|
||||||
operationId: emailSubmitTokenGetV2
|
operationId: emailSubmitTokenGetV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
parameters:
|
parameters:
|
||||||
- in: query
|
- in: query
|
||||||
name: sid
|
name: sid
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,8 @@ paths:
|
||||||
to `store-invite`, and fetch the sender of the invite.
|
to `store-invite`, and fetch the sender of the invite.
|
||||||
operationId: blindlySignStuffV2
|
operationId: blindlySignStuffV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,8 @@ paths:
|
||||||
any of the algorithms defined in this specification.
|
any of the algorithms defined in this specification.
|
||||||
operationId: getHashDetails
|
operationId: getHashDetails
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The hash function information.
|
description: The hash function information.
|
||||||
|
|
@ -70,7 +71,8 @@ paths:
|
||||||
later in this specification.
|
later in this specification.
|
||||||
operationId: lookupUsersV2
|
operationId: lookupUsersV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,8 @@ paths:
|
||||||
deprecated.
|
deprecated.
|
||||||
operationId: msisdnRequestTokenV2
|
operationId: msisdnRequestTokenV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
@ -109,7 +110,8 @@ paths:
|
||||||
deprecated.
|
deprecated.
|
||||||
operationId: msisdnSubmitTokenPostV2
|
operationId: msisdnSubmitTokenPostV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
@ -182,7 +184,8 @@ paths:
|
||||||
used by end-users, and so the response should be human-readable.
|
used by end-users, and so the response should be human-readable.
|
||||||
operationId: msisdnSubmitTokenGetV2
|
operationId: msisdnSubmitTokenGetV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
parameters:
|
parameters:
|
||||||
- in: query
|
- in: query
|
||||||
name: sid
|
name: sid
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,8 @@ paths:
|
||||||
the `address` of the pending invite for display purposes.
|
the `address` of the pending invite for display purposes.
|
||||||
operationId: storeInviteV2
|
operationId: storeInviteV2
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,8 @@ paths:
|
||||||
may not be accepting all terms at once.
|
may not be accepting all terms at once.
|
||||||
operationId: agreeToTerms
|
operationId: agreeToTerms
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessTokenQuery: []
|
||||||
|
- accessTokenBearer: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue