JIT
connecting to multiple endpoints and extracting tokens with regex
connect to https://idpsesion.app.flow.com.ar/openam/oauth2/realms/%2Fconvergente/access_token payload client_id=091dd7f91ddabd9a23f83e74e081019a&code=lCG3Rg0rD2j-Bsew8AwPUo8KgRA&redirect_uri=https%3A%2F%2Fsdk.telecom.com.ar%3A8443%2Fcallback&grant_type=authorization_code&code_verifier=olyVRJb_c3HeJ0xQxwDBKxay8cVOJYrXwPmjLj7D9uHz8UmcBowL2ds_SAJv_XnsNoR5_Njm883iOC-7VUo0kQ headers x-dynatrace: MT_3_30_664159783_2-0_ce38b288-6f83-4e9c-bd76-18ba05e752f4_0_7464_173, x-request-id: Flow|Android|3.137.2|0||25257c00, User-Agent: Ktor client, content-type: application/x-www-form-urlencoded, Cookie: iPlanetDirectoryPro=DPa3V4WDFLAcgb6zZGxCL3GRGDQ.*AAJTSQACMDMAAlNLABxiLy90dTVlZXJJUjNFaWxFRGJ4VThHbUlTaEU9AAR0eXBlAANDVFMAAlMxAAIwNg..*; TS01754d09=019e1a2f770c41f759fe1a0d892c03a04af90a52b4a86d32d6c23b582a6bec62c7252a1a39e3f2d8255231237faf9d84e5ad8821fc; amlbcookie=06; TS01a79a55=019e1a2f77e4c1f40d568daab34b078ce1917833dda86d32d6c23b582a6bec62c7252a1a39b1ae4be85c776422e78c6e856f123598d6cbc9b42bf3aafe7250c722dfbbdf1cb9a658b0091b4f3ffad97a05e13b57cfe2e97aa04ecf57f93108fb199bde7021 and with regex expression "id_token":\s*"(.+?)" extract the id_token. then connect to https://authsdk.app.flow.com.ar/auth-sdk/v1/flowaccesstoken no payload, headers x-dynatrace: MT_3_30_664159783_2-0_ce38b288-6f83-4e9c-bd76-18ba05e752f4_0_7464_173, User-Agent: Ktor client, x-request-id: Flow|Android|3.137.2|0||25257c00, content-type: text/plain, authorization: Bearer $id_token and with regex expression "flowAccessToken":\s*"(.+?)" extract flowAccessToken. Then connect to https://geo.mnedge.cvattv.com.ar:4446/xtv-ws-client/api/v1/provision/token/oauth/teco-idp payload {"identifier":"a4:f6:e8:0f:65:63","deviceInfo":{"networkType":"WiFi","playerType":"TheoPlayer","deviceOsVersion":"3.137.2","casId":"fe1ef16ccab73beebbb4ae641a94b9c4","deviceModel":"MOTO G 5G PLUS","mac":"4f6e80f65633","deviceName":"NAIRO","appVersion":"3.137.2","deviceType":"phone","deviceBrand":"MOTOROLA","deviceOs":"Android","firmwareVersion":"RPNS31.Q4U-39-27-5-24","uuid":"a4:f6:e8:0f:65:63"},"token":"$flowAccessToken"} headers Content-Type: application/json; charset=UTF-8, User-Agent: Ktor client, x-dynatrace: MT_3_30_664159783_2-0_ce38b288-6f83-4e9c-bd76-18ba05e752f4_0_7477_192, x-request-id: Flow|Android|3.137.2|0|0|1998051340 and with regex expression "deviceToken":\s*"(.+?)" extract deviceToken. then connect to https://geo.mnedge.cvattv.com.ar:4446/xtv-ws-client/api/v1/session/4156195 payload {"deviceInfo":{"networkType":"WiFi","playerType":"TheoPlayer","deviceOsVersion":"3.137.2","casId":"fe1ef16ccab73beebbb4ae641a94b9c4","locale":null,"deviceModel":"MOTO G 5G PLUS","mac":"4f6e80f65633","prmDeviceOs":"","deviceName":"NAIRO","appVersion":"3.137.2","deviceType":"phone","deviceBrand":"MOTOROLA","deviceOs":"Android","firmwareVersion":"RPNS31.Q4U-39-27-5-24","uuid":"a4:f6:e8:0f:65:63","prmDeviceType":null,"ipAddress":""},"deviceToken":"$deviceToken"} headers Content-Type: application/json; charset=UTF-8, User-Agent: Ktor client, x-dynatrace: MT_3_30_664159783_2-0_ce38b288-6f83-4e9c-bd76-18ba05e752f4_0_7477_192, x-request-id: Flow|Android|3.137.2|0|0|1998051340 extract the authorization bearer from response headers using the regex expression Authorization:\s*Bearer\s*(.+) and use it in the next request https://479f02-default.mnedge.cvattv.com.ar:4446/xtv-ws-client/api/login/cache/token headers User-Agent: Ktor client, x-dynatrace: MT_3_30_664159783_2-0_ce38b288-6f83-4e9c-bd76-18ba05e752f4_0_7477_192, x-request-id: Flow|Android|3.137.2|0|0|1998051340, Authorization: Bearer $token and show response
Updated files
v1