mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-23 14:38:00 +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>
384 lines
14 KiB
JSON
384 lines
14 KiB
JSON
{
|
|
"name": "@tooljet-plugins/common",
|
|
"version": "1.0.0",
|
|
"lockfileVersion": 2,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "@tooljet-plugins/common",
|
|
"version": "1.0.0",
|
|
"dependencies": {
|
|
"react": "^17.0.2",
|
|
"rimraf": "^3.0.2",
|
|
"tough-cookie": "^4.1.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/tough-cookie": "^4.0.2"
|
|
}
|
|
},
|
|
"node_modules/@types/tough-cookie": {
|
|
"version": "4.0.2",
|
|
"resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.2.tgz",
|
|
"integrity": "sha512-Q5vtl1W5ue16D+nIaW8JWebSSraJVlK+EthKn7e7UcD4KWsaSJ8BqGPXNaPghgtcn/fhvrN17Tv8ksUsQpiplw==",
|
|
"dev": true
|
|
},
|
|
"node_modules/balanced-match": {
|
|
"version": "1.0.2",
|
|
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
|
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
|
|
},
|
|
"node_modules/brace-expansion": {
|
|
"version": "1.1.11",
|
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
|
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
|
"dependencies": {
|
|
"balanced-match": "^1.0.0",
|
|
"concat-map": "0.0.1"
|
|
}
|
|
},
|
|
"node_modules/concat-map": {
|
|
"version": "0.0.1",
|
|
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
|
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
|
|
},
|
|
"node_modules/fs.realpath": {
|
|
"version": "1.0.0",
|
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
|
},
|
|
"node_modules/glob": {
|
|
"version": "7.2.0",
|
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
|
|
"integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
|
|
"dependencies": {
|
|
"fs.realpath": "^1.0.0",
|
|
"inflight": "^1.0.4",
|
|
"inherits": "2",
|
|
"minimatch": "^3.0.4",
|
|
"once": "^1.3.0",
|
|
"path-is-absolute": "^1.0.0"
|
|
},
|
|
"engines": {
|
|
"node": "*"
|
|
},
|
|
"funding": {
|
|
"url": "https://github.com/sponsors/isaacs"
|
|
}
|
|
},
|
|
"node_modules/inflight": {
|
|
"version": "1.0.6",
|
|
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
|
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
|
"dependencies": {
|
|
"once": "^1.3.0",
|
|
"wrappy": "1"
|
|
}
|
|
},
|
|
"node_modules/inherits": {
|
|
"version": "2.0.4",
|
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
|
},
|
|
"node_modules/js-tokens": {
|
|
"version": "4.0.0",
|
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
|
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
|
|
},
|
|
"node_modules/loose-envify": {
|
|
"version": "1.4.0",
|
|
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
|
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
|
"dependencies": {
|
|
"js-tokens": "^3.0.0 || ^4.0.0"
|
|
},
|
|
"bin": {
|
|
"loose-envify": "cli.js"
|
|
}
|
|
},
|
|
"node_modules/minimatch": {
|
|
"version": "3.0.4",
|
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
|
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
|
|
"dependencies": {
|
|
"brace-expansion": "^1.1.7"
|
|
},
|
|
"engines": {
|
|
"node": "*"
|
|
}
|
|
},
|
|
"node_modules/object-assign": {
|
|
"version": "4.1.1",
|
|
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
|
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
}
|
|
},
|
|
"node_modules/once": {
|
|
"version": "1.4.0",
|
|
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
|
"dependencies": {
|
|
"wrappy": "1"
|
|
}
|
|
},
|
|
"node_modules/path-is-absolute": {
|
|
"version": "1.0.1",
|
|
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
|
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
}
|
|
},
|
|
"node_modules/psl": {
|
|
"version": "1.9.0",
|
|
"resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz",
|
|
"integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag=="
|
|
},
|
|
"node_modules/punycode": {
|
|
"version": "2.3.0",
|
|
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
|
|
"integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
|
|
"engines": {
|
|
"node": ">=6"
|
|
}
|
|
},
|
|
"node_modules/querystringify": {
|
|
"version": "2.2.0",
|
|
"resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz",
|
|
"integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ=="
|
|
},
|
|
"node_modules/react": {
|
|
"version": "17.0.2",
|
|
"resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz",
|
|
"integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==",
|
|
"dependencies": {
|
|
"loose-envify": "^1.1.0",
|
|
"object-assign": "^4.1.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
}
|
|
},
|
|
"node_modules/requires-port": {
|
|
"version": "1.0.0",
|
|
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
|
|
"integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="
|
|
},
|
|
"node_modules/rimraf": {
|
|
"version": "3.0.2",
|
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
|
|
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
|
|
"dependencies": {
|
|
"glob": "^7.1.3"
|
|
},
|
|
"bin": {
|
|
"rimraf": "bin.js"
|
|
},
|
|
"funding": {
|
|
"url": "https://github.com/sponsors/isaacs"
|
|
}
|
|
},
|
|
"node_modules/tough-cookie": {
|
|
"version": "4.1.3",
|
|
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz",
|
|
"integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==",
|
|
"dependencies": {
|
|
"psl": "^1.1.33",
|
|
"punycode": "^2.1.1",
|
|
"universalify": "^0.2.0",
|
|
"url-parse": "^1.5.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=6"
|
|
}
|
|
},
|
|
"node_modules/universalify": {
|
|
"version": "0.2.0",
|
|
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz",
|
|
"integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==",
|
|
"engines": {
|
|
"node": ">= 4.0.0"
|
|
}
|
|
},
|
|
"node_modules/url-parse": {
|
|
"version": "1.5.10",
|
|
"resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz",
|
|
"integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==",
|
|
"dependencies": {
|
|
"querystringify": "^2.1.1",
|
|
"requires-port": "^1.0.0"
|
|
}
|
|
},
|
|
"node_modules/wrappy": {
|
|
"version": "1.0.2",
|
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
|
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@types/tough-cookie": {
|
|
"version": "4.0.2",
|
|
"resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.2.tgz",
|
|
"integrity": "sha512-Q5vtl1W5ue16D+nIaW8JWebSSraJVlK+EthKn7e7UcD4KWsaSJ8BqGPXNaPghgtcn/fhvrN17Tv8ksUsQpiplw==",
|
|
"dev": true
|
|
},
|
|
"balanced-match": {
|
|
"version": "1.0.2",
|
|
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
|
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
|
|
},
|
|
"brace-expansion": {
|
|
"version": "1.1.11",
|
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
|
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
|
"requires": {
|
|
"balanced-match": "^1.0.0",
|
|
"concat-map": "0.0.1"
|
|
}
|
|
},
|
|
"concat-map": {
|
|
"version": "0.0.1",
|
|
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
|
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
|
|
},
|
|
"fs.realpath": {
|
|
"version": "1.0.0",
|
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
|
},
|
|
"glob": {
|
|
"version": "7.2.0",
|
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
|
|
"integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
|
|
"requires": {
|
|
"fs.realpath": "^1.0.0",
|
|
"inflight": "^1.0.4",
|
|
"inherits": "2",
|
|
"minimatch": "^3.0.4",
|
|
"once": "^1.3.0",
|
|
"path-is-absolute": "^1.0.0"
|
|
}
|
|
},
|
|
"inflight": {
|
|
"version": "1.0.6",
|
|
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
|
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
|
"requires": {
|
|
"once": "^1.3.0",
|
|
"wrappy": "1"
|
|
}
|
|
},
|
|
"inherits": {
|
|
"version": "2.0.4",
|
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
|
},
|
|
"js-tokens": {
|
|
"version": "4.0.0",
|
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
|
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
|
|
},
|
|
"loose-envify": {
|
|
"version": "1.4.0",
|
|
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
|
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
|
"requires": {
|
|
"js-tokens": "^3.0.0 || ^4.0.0"
|
|
}
|
|
},
|
|
"minimatch": {
|
|
"version": "3.0.4",
|
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
|
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
|
|
"requires": {
|
|
"brace-expansion": "^1.1.7"
|
|
}
|
|
},
|
|
"object-assign": {
|
|
"version": "4.1.1",
|
|
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
|
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="
|
|
},
|
|
"once": {
|
|
"version": "1.4.0",
|
|
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
|
"requires": {
|
|
"wrappy": "1"
|
|
}
|
|
},
|
|
"path-is-absolute": {
|
|
"version": "1.0.1",
|
|
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
|
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
|
|
},
|
|
"psl": {
|
|
"version": "1.9.0",
|
|
"resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz",
|
|
"integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag=="
|
|
},
|
|
"punycode": {
|
|
"version": "2.3.0",
|
|
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
|
|
"integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA=="
|
|
},
|
|
"querystringify": {
|
|
"version": "2.2.0",
|
|
"resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz",
|
|
"integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ=="
|
|
},
|
|
"react": {
|
|
"version": "17.0.2",
|
|
"resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz",
|
|
"integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==",
|
|
"requires": {
|
|
"loose-envify": "^1.1.0",
|
|
"object-assign": "^4.1.1"
|
|
}
|
|
},
|
|
"requires-port": {
|
|
"version": "1.0.0",
|
|
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
|
|
"integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="
|
|
},
|
|
"rimraf": {
|
|
"version": "3.0.2",
|
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
|
|
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
|
|
"requires": {
|
|
"glob": "^7.1.3"
|
|
}
|
|
},
|
|
"tough-cookie": {
|
|
"version": "4.1.3",
|
|
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz",
|
|
"integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==",
|
|
"requires": {
|
|
"psl": "^1.1.33",
|
|
"punycode": "^2.1.1",
|
|
"universalify": "^0.2.0",
|
|
"url-parse": "^1.5.3"
|
|
}
|
|
},
|
|
"universalify": {
|
|
"version": "0.2.0",
|
|
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz",
|
|
"integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg=="
|
|
},
|
|
"url-parse": {
|
|
"version": "1.5.10",
|
|
"resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz",
|
|
"integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==",
|
|
"requires": {
|
|
"querystringify": "^2.1.1",
|
|
"requires-port": "^1.0.0"
|
|
}
|
|
},
|
|
"wrappy": {
|
|
"version": "1.0.2",
|
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
|
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
|
}
|
|
}
|
|
}
|