Skip to content

Commit 3d3d430

Browse files
chore: now the request url to get token use an env variable to get the tenant id
1 parent 5963397 commit 3d3d430

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flows.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@
700700
"type": "function",
701701
"z": "09012e75c72a4968",
702702
"name": "setRequestToGetToken",
703-
"func": "msg.headers = {};\nmsg.headers['Content-Type'] = \"application/x-www-form-urlencoded\"\nmsg.payload = `grant_type = client_credentials &\n client_id = ` + env.get(\"AZURE_DT_CLIENT_ID\") + ` &\n client_secret =` + env.get(\"AZURE_DT_CLIENT_SECRET\") + ` &\n resource = https://digitaltwins.azure.net \n `\nreturn msg;",
703+
"func": "msg.headers = {};\nmsg.headers['Content-Type'] = \"application/x-www-form-urlencoded\"\nmsg.payload = `grant_type = client_credentials &\n client_id = ` + env.get(\"AZURE_DT_CLIENT_ID\") + ` &\n client_secret =` + env.get(\"AZURE_DT_CLIENT_SECRET\") + ` &\n resource = https://digitaltwins.azure.net \n `\nmsg.url = \"https://login.microsoftonline.com/\"+ env.get(\"AZURE_DT_TENANT_ID\") +\"/oauth2/token\" \nreturn msg;",
704704
"outputs": 1,
705705
"noerr": 0,
706706
"initialize": "",
@@ -722,7 +722,7 @@
722722
"method": "GET",
723723
"ret": "obj",
724724
"paytoqs": "body",
725-
"url": "https://login.microsoftonline.com/dcd04e3e-49bc-4f06-9237-a830cf4d6403/oauth2/token",
725+
"url": "",
726726
"tls": "",
727727
"persist": true,
728728
"proxy": "",

0 commit comments

Comments
 (0)