Files
api-specs/idn/v3/paths/oauth-client.yaml
GitHub Action Bot 9269e86172 Automated commit 'added new oauth2 flow and description (#1386)
* added new oauth2 flow and description

* renamed authentication to make more sense' by github action: 5967546682
2023-08-24 18:29:03 +00:00

140 lines
3.4 KiB
YAML

get:
operationId: getOauthClient
security:
- UserContextAuth: [sp:oauth-client:manage, sp:oauth-client:read]
tags:
- OAuth Clients
summary: Get OAuth Client
description: >-
This gets details of an OAuth client.
parameters:
- in: path
name: id
schema:
type: string
required: true
description: The OAuth client id
example: ef38f94347e94562b5bb8424a56397d8
responses:
'200':
description: Request succeeded.
content:
application/json:
schema:
$ref: '../schemas/GetOAuthClientResponse.yaml'
'400':
$ref: '../responses/400.yaml'
'401':
$ref: '../responses/401.yaml'
'403':
$ref: '../responses/403.yaml'
'404':
$ref: '../responses/404.yaml'
'429':
$ref: '../responses/429.yaml'
'500':
$ref: '../responses/500.yaml'
delete:
operationId: deleteOauthClient
security:
- UserContextAuth: [sp:oauth-client:manage]
tags:
- OAuth Clients
summary: Delete OAuth Client
description: >-
This deletes an OAuth client.
parameters:
- in: path
name: id
schema:
type: string
required: true
description: The OAuth client id
example: ef38f94347e94562b5bb8424a56397d8
responses:
'204':
description: No content.
'400':
$ref: '../responses/400.yaml'
'401':
$ref: '../responses/401.yaml'
'403':
$ref: '../responses/403.yaml'
'404':
$ref: '../responses/404.yaml'
'429':
$ref: '../responses/429.yaml'
'500':
$ref: '../responses/500.yaml'
patch:
operationId: patchOauthClient
security:
- UserContextAuth: [sp:oauth-client:manage]
tags:
- OAuth Clients
summary: Patch OAuth Client
description: >-
This performs a targeted update to the field(s) of an OAuth client.
parameters:
- in: path
name: id
schema:
type: string
required: true
description: The OAuth client id
example: ef38f94347e94562b5bb8424a56397d8
requestBody:
required: true
description: |
A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
The following fields are patchable:
* tenant
* businessName
* homepageUrl
* name
* description
* accessTokenValiditySeconds
* refreshTokenValiditySeconds
* redirectUris
* grantTypes
* accessType
* enabled
* strongAuthSupported
* claimsSupported
content:
application/json-patch+json:
schema:
type: array
items:
$ref: '../schemas/JsonPatchOperation.yaml'
example:
- op: "replace"
path: "/strongAuthSupported"
value: true
- op: "replace"
path: "/businessName"
value: "acme-solar"
responses:
'200':
description: >-
Indicates the PATCH operation succeeded, and returns the OAuth client's new representation.
content:
application/json:
schema:
$ref: '../schemas/GetOAuthClientResponse.yaml'
'400':
$ref: '../responses/400.yaml'
'401':
$ref: '../responses/401.yaml'
'403':
$ref: '../responses/403.yaml'
'404':
$ref: '../responses/404.yaml'
'429':
$ref: '../responses/429.yaml'
'500':
$ref: '../responses/500.yaml'