mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-24 06:57:40 +00:00
* 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>
89 lines
1.7 KiB
JSON
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"]
|
|
}
|