mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 11:34: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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
accessToken:
|
||||
accessTokenQuery:
|
||||
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
|
||||
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.
|
||||
operationId: getValidated3pidV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
parameters:
|
||||
- in: query
|
||||
name: sid
|
||||
|
|
@ -128,7 +129,8 @@ paths:
|
|||
deprecated.
|
||||
operationId: bindV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -279,7 +281,8 @@ paths:
|
|||
homeserver is acting on behalf of a client.
|
||||
operationId: unbindV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ paths:
|
|||
request.
|
||||
operationId: getAccount
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
responses:
|
||||
"200":
|
||||
description: The token holder's information.
|
||||
|
|
@ -99,7 +100,8 @@ paths:
|
|||
future requests to the server.
|
||||
operationId: logout
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
responses:
|
||||
"200":
|
||||
description: The token was successfully logged out.
|
||||
|
|
|
|||
|
|
@ -40,7 +40,8 @@ paths:
|
|||
deprecated.
|
||||
operationId: emailRequestTokenV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -107,7 +108,8 @@ paths:
|
|||
deprecated.
|
||||
operationId: emailSubmitTokenPostV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -180,7 +182,8 @@ paths:
|
|||
used by end-users, and so the response should be human-readable.
|
||||
operationId: emailSubmitTokenGetV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
parameters:
|
||||
- in: query
|
||||
name: sid
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@ paths:
|
|||
to `store-invite`, and fetch the sender of the invite.
|
||||
operationId: blindlySignStuffV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ paths:
|
|||
any of the algorithms defined in this specification.
|
||||
operationId: getHashDetails
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
responses:
|
||||
"200":
|
||||
description: The hash function information.
|
||||
|
|
@ -70,7 +71,8 @@ paths:
|
|||
later in this specification.
|
||||
operationId: lookupUsersV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
|
|||
|
|
@ -40,7 +40,8 @@ paths:
|
|||
deprecated.
|
||||
operationId: msisdnRequestTokenV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -109,7 +110,8 @@ paths:
|
|||
deprecated.
|
||||
operationId: msisdnSubmitTokenPostV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -182,7 +184,8 @@ paths:
|
|||
used by end-users, and so the response should be human-readable.
|
||||
operationId: msisdnSubmitTokenGetV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
parameters:
|
||||
- in: query
|
||||
name: sid
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ paths:
|
|||
the `address` of the pending invite for display purposes.
|
||||
operationId: storeInviteV2
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
|
|||
|
|
@ -119,7 +119,8 @@ paths:
|
|||
may not be accepting all terms at once.
|
||||
operationId: agreeToTerms
|
||||
security:
|
||||
- accessToken: []
|
||||
- accessTokenQuery: []
|
||||
- accessTokenBearer: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
|
|
|||
Loading…
Reference in a new issue