Skip to content

Commit f9cac02

Browse files
chore: now the client is to specify using env variable
1 parent 8aa49ff commit f9cac02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flows.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@
706706
"type": "function",
707707
"z": "09012e75c72a4968",
708708
"name": "setRequestToGetToken",
709-
"func": "msg.headers = {};\nmsg.headers['Content-Type'] = \"application/x-www-form-urlencoded\"\nmsg.payload = `grant_type = client_credentials &\n client_id = 8b0ac1d0-a5aa-4bcf-ae19-7f045016fdea &\n client_secret =` + env.get(\"clientSecret\") + ` &\n resource = https://digitaltwins.azure.net \n `\nreturn msg;",
709+
"func": "msg.headers = {};\nmsg.headers['Content-Type'] = \"application/x-www-form-urlencoded\"\nmsg.payload = `grant_type = client_credentials &\n client_id = ` +env.get(\"CLIENT_ID\") + ` &\n client_secret =` + env.get(\"CLIENT_SECRET\") + ` &\n resource = https://digitaltwins.azure.net \n `\nreturn msg;",
710710
"outputs": 1,
711711
"noerr": 0,
712712
"initialize": "",

0 commit comments

Comments
 (0)