I've configured a web activity in Azure Data Factory to consume various REST services and specifically, get tokens from various Microsoft services such as Power BI and Azure Function (using AAD authentications) and the tokens are coming back. The problem seems the token has been truncated and can't be used in the next GET activity to actually get the data. The pipeline is definitely correct, just the tokens are all truncated. (If I substitute it with ones from Postman, it works). Anyone experience this before and know a workaround? This is the json that comes back with the call. The tokens I get in Postman or C# are all much longer
{ "token_type": "Bearer", "expires_in": "86399", "ext_expires_in": "86399", "expires_on": "1631080251", "not_before": "1630993551", "resource": "8256e7be-fcf0-4463-b7ec-a49300edc57a", "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiI4MjU2ZTdiZS1mY2YwLTQ0NjMtYjdlYy1hNDkzMDBlZGM1N2EiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjMwOTkzNTUxLCJuYmYiOjE2MzA5OTM1NTEsImV4cCI6MTYzMTA4MDI1MSwiYWlvIjoiRTJaZ1lOZ3RQVEhIVkp6QjZScDc5aE9tcnA2SkFBPT0iLCJhcHBpZCI6IjgyNTZlN2JlLWZjZjAtNDQ2My1iN2VjLWE0OTMwMGVkYzU3YSIsImFwcGlkYWNyIjoiMSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmsfRvd3MubmV0LzZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0Ny8iLCJyaCI6IjAuQVJvQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjc3blZvTHdfR05FdC15a2t3RHR4WG9hQUFBLiIsInRpZCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsInV0aSI6InlQb2dzN3hYMTB5ZlkyNWF0bGZPQUEiLCJ2ZXIiOiIxLjAifQ.mKnct3f_UceaUOcXg_Oddd4nqU-Wmw1NHet3Cz_UuOA5HLgmWv0oGKNFTGfCmLX00zi1AgZ6WIl-9JIOssJCP3ha37SfJ1l2-Vm-XeU9kGqLd4EjGzJ6jXHI5bmzQs3quGMzjmIAUvfJymq-HSMNMOmnGNJPT5Exr1l-iFTX-dWWY8G2XQQjf-icq_cjod2dRSP5IK-b5_MprvzveibceKnCWOMEI5gWZwCZNh1TWPa6AAYZ0Yk1YexWG9shwqBPpUtHygt7LuO8zXzMIhpINyMuUp0NoDKSDhKgwmc_aRBWO7QSjsCBepc-2s0cmi8sIn-rEiJpuPed5qgyoVVwbA", "ADFWebActivityResponseHeaders": { "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-request-id": "b320fac8-57bc-4cd7-9f63-6e5ab657ce00", "x-ms-ests-server": "2.1.12025.12 - KRSLR1 ProdSlices", "Cache-Control": "no-store, no-cache", "P3P": "CP="DSP CUR OTPi IND OTRi ONL FIN"", "Set-Cookie": "fpc=AhFRmOZBxGtFgW2I5JvVnQI; expires=Thu, 07-Oct-2021 05:50:51 GMT; path=/; secure; HttpOnly; SameSite=None;x-ms-gateway-slice=estsfd; path=/; secure; httponly;stsservicecookie=estsfd; path=/; secure; httponly", "Date": "Tue, 07 Sep 2021 05:50:51 GMT", "Content-Length": "1319", "Content-Type": "application/json; charset=utf-8", "Expires": "-1" }, "effectiveIntegrationRuntime": "DefaultIntegrationRuntime (Southeast Asia)", "executionDuration": 0, "durationInQueue": { "integrationRuntimeQueue": 0 }, "billingReference": { "activityType": "ExternalActivity", "billableDuration": [ { "meterType": "AzureIR", "duration": 0.016666666666666666, "unit": "Hours" } ] } }