Skip to content

Commit

Permalink
recording processor updating for foreign clouds (#18073)
Browse files Browse the repository at this point in the history
* recording processor updating for foreign clouds

* Update tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py

Co-authored-by: Charles Lowell <chlowe@microsoft.com>

Co-authored-by: Charles Lowell <chlowe@microsoft.com>
  • Loading branch information
seankane-msft and chlowell authored Apr 15, 2021
1 parent 99cf2bd commit 77feaf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def process_request(self, request):
# GET https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/token
# POST https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token
import re
if not re.match('https://login.microsoftonline.com/([^/]+)/oauth2(?:/v2.0)?/token', request.uri):
if not re.search('/oauth2(?:/v2.0)?/token', request.uri):
return request
return None

Expand Down

0 comments on commit 77feaf1

Please sign in to comment.