ToolJet/plugins/packages/graphql/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

186 lines
No EOL
3.4 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json",
"title": "Graphql datasource",
"description": "A schema defining graphql datasource",
"type": "api",
"source": {
"name": "GraphQL",
"kind": "graphql",
"options": {
"url": {
"type": "string"
},
"headers": {
"type": "array"
},
"url_params": {
"type": "array"
},
"body": {
"type": "array"
},
"auth_type": {
"type": "string"
},
"grant_type": {
"type": "string"
},
"add_token_to": {
"type": "string"
},
"header_prefix": {
"type": "string"
},
"access_token_url": {
"type": "string"
},
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string",
"encrypted": true
},
"password": {
"encrypted": true
},
"bearer_token": {
"encrypted": true
},
"scopes": {
"type": "string"
},
"auth_url": {
"type": "string"
},
"client_auth": {
"type": "string"
},
"custom_auth_params": {
"type": "array"
}
},
"exposedVariables": {
"isLoading": false,
"data": {},
"rawData": {}
},
"customTesting": true
},
"defaults": {
"url": {
"value": ""
},
"auth_type": {
"value": "none"
},
"grant_type": {
"value": "authorization_code"
},
"add_token_to": {
"value": "header"
},
"header_prefix": {
"value": "Bearer "
},
"access_token_url": {
"value": ""
},
"client_id": {
"value": ""
},
"client_secret": {
"value": ""
},
"scopes": {
"value": "read, write"
},
"username": {
"value": ""
},
"password": {
"value": ""
},
"bearer_token": {
"value": ""
},
"auth_url": {
"value": ""
},
"client_auth": {
"value": "header"
},
"headers": {
"value": [
[
"",
""
]
]
},
"custom_query_params": {
"value": [
[
"",
""
]
]
},
"custom_auth_params": {
"value": [
[
"",
""
]
]
},
"access_token_custom_headers": {
"value": [
[
"",
""
]
]
},
"multiple_auth_enabled": {
"value": false
},
"url_params": {
"value": [
[
"",
""
]
]
}
},
"properties": {
"url": {
"label": "URL",
"key": "url",
"type": "text",
"description": "https://api.example.com/v1/graphql"
},
"headers": {
"label": "Headers",
"key": "headers",
"type": "react-component-headers",
"description": "key-value pair headers for graphql api"
},
"url_params": {
"label": "URL parameters",
"key": "url_params",
"type": "react-component-headers",
"description": "key-value pair url parameters for graphql api"
},
"auth_type": {
"label": "Authentication Type",
"key": "auth_type",
"type": "react-component-oauth-authentication",
"description": "key-value pair headers for graphQL api"
}
},
"required": [
"url"
]
}