Skip to content

Commit 4936570

Browse files
chore: now the client secret is retrieved using an env variable
1 parent dd87a78 commit 4936570

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
@@ -649,7 +649,7 @@
649649
"type": "function",
650650
"z": "09012e75c72a4968",
651651
"name": "setRequestToGetToken",
652-
"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 = D7D8Q~2p3rLraUk8eY3dz-DjJlbLMOpJ9LYWLan. &\n resource = https://digitaltwins.azure.net \n `\nreturn msg;",
652+
"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;",
653653
"outputs": 1,
654654
"noerr": 0,
655655
"initialize": "",

0 commit comments

Comments
 (0)