ToolJet/plugins/packages/openapi/lib/manifest.json
Muhsin Shah C P 80ee7b7cac
[Improvement] Auth flow improvements for RestAPI, OpenAPI & GraphQL (#5324)
* Added access token url headers option to open api

* removing and adding code

* add authentication in GraphQL as RestAPI (#6687)

* add authentication in GraphQL as RestAPI

* fix: remove double header check

---------

Co-authored-by: Jean-Baptiste PIN <jeanbaptiste@idruide.com>

* refactor auth flows for restapi, openapi & graphql

* fix type errors

* remove redundant declarations

* fix openapi build error

* update authUrl for OAuth

* fix oauth check

---------

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Jean-Baptiste PIN <jibet.pin@gmail.com>
Co-authored-by: Jean-Baptiste PIN <jeanbaptiste@idruide.com>
2023-07-21 15:38:56 +05:30

89 lines
1.7 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json",
"title": "OpenAPI datasource",
"description": "A schema defining OpenAPI datasource",
"type": "api",
"source": {
"name": "OpenAPI",
"kind": "openapi",
"exposedVariables": {
"isLoading": false,
"data": {},
"rawData": {}
},
"options": {
"password": {
"encrypted": true
},
"bearer_token": {
"encrypted": true
},
"client_secret": {
"encrypted": true
}
},
"customTesting": true
},
"defaults": {
"format": {
"value": "json"
},
"definition": {
"value": ""
},
"username": {
"value": ""
},
"password": {
"value": ""
},
"bearer_token": {
"value": ""
},
"grant_type": {
"value": "authorization_code"
},
"add_token_to": {
"value": "header"
},
"header_prefix": {
"value": "Bearer "
},
"client_id": {
"value": ""
},
"client_secret": {
"value": ""
},
"auth_url": {
"value": ""
},
"access_token_url": {
"value": ""
},
"headers": {
"value": [["", ""]]
},
"custom_query_params": {
"value": [["", ""]]
},
"custom_auth_params": {
"value": [["", ""]]
},
"client_auth": {
"value": "header"
},
"access_token_custom_headers": {
"value": [["", ""]]
}
},
"properties": {
"format": {
"label": "Format",
"key": "format",
"type": "react-component-openapi-validator",
"description": "Format of definition"
}
},
"required": ["definition"]
}