This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const authReq = { | |
url: "http://10.215.xxx.xxx:18200/sys-auth/oauth/token", | |
method: "POST", | |
header: { | |
"Authorization": "Basic ZmF3a2VzOmZhd2tlc19zZWNyxxx=" | |
}, | |
body: { | |
mode: "formdata", | |
formdata: [ | |
{key: "scope", value: "all"}, |