diff --git a/sdk/containerregistry/container-registry/package.json b/sdk/containerregistry/container-registry/package.json index 7a152d0bf4b6..9727225bb1e2 100644 --- a/sdk/containerregistry/container-registry/package.json +++ b/sdk/containerregistry/container-registry/package.json @@ -6,7 +6,8 @@ "main": "dist/index.js", "module": "dist-esm/src/index.js", "browser": { - "./dist-esm/src/url.js": "./dist-esm/src/url.browser.js" + "./dist-esm/src/url.js": "./dist-esm/src/url.browser.js", + "./dist-esm/src/base64.js": "./dist-esm/src/base64.browser.js" }, "types": "types/container-registry.d.ts", "//metadata": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_deletes_repository_of_given_name.json b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_deletes_repository_of_given_name.json index 1f810cd229a4..dfe01666d462 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_deletes_repository_of_given_name.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_deletes_repository_of_given_name.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -90,7 +90,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fbusybox%3Adelete", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fbusybox%3Adelete", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -150,7 +150,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -189,4 +189,4 @@ "newDate": {} }, "hash": "f40f6fc3b0a198fe745286291f26e2e9" -} \ No newline at end of file +} diff --git a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories.json b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories.json index 2d7e63415fe0..faef7e94535c 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -90,7 +90,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages.json b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages.json index d7248fa98f09..76f799fc69f9 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -51,7 +51,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -77,7 +77,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -93,7 +93,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -159,7 +159,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -204,4 +204,4 @@ "newDate": {} }, "hash": "da91aafbb28a29afb5163f94ea0c2369" -} \ No newline at end of file +} diff --git a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json index f88f2ea1391b..11c04c669e65 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -53,7 +53,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -79,7 +79,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -95,7 +95,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -140,4 +140,4 @@ "newDate": {} }, "hash": "5caabd097293453dd1a79956d5adff50" -} \ No newline at end of file +} diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_deletes_a_given_tag.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_deletes_a_given_tag.json index 58c541abe9f5..4e0cd29b8865 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_deletes_a_given_tag.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_deletes_a_given_tag.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -91,7 +91,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Adelete", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Adelete", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -153,7 +153,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_manifest_properties.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_manifest_properties.json index 35692a7472e9..b69a62f6f936 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_manifest_properties.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_manifest_properties.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -91,7 +91,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -150,7 +150,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -209,7 +209,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_repository_properties.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_repository_properties.json index 27e418f10d5e..759e60d1a8a8 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_repository_properties.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_repository_properties.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -91,7 +91,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -150,7 +150,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -209,7 +209,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_tag_properties.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_tag_properties.json index ea5f1eaca979..404b399fc52c 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_tag_properties.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_tag_properties.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -91,7 +91,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -150,7 +150,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -209,7 +209,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests.json index 81b88f5b833c..a75d07552a9f 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -91,7 +91,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json index 6286e4e5abb1..b580286cc410 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -51,7 +51,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -77,7 +77,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -93,7 +93,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -159,7 +159,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json index 3711b52d2361..72319960b2c1 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -53,7 +53,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -79,7 +79,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -95,7 +95,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -140,4 +140,4 @@ "newDate": {} }, "hash": "9998aa06a91fc21cc30107288edf21c1" -} \ No newline at end of file +} diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags.json index 33e1b93bea07..88dd71d1ec47 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -91,7 +91,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages.json index 967c8338113f..1a8cdf589312 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -51,7 +51,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -77,7 +77,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -93,7 +93,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -159,7 +159,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json index d73ca089c19c..50fbd7ad0fc5 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -53,7 +53,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -79,7 +79,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -95,7 +95,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -139,4 +139,4 @@ "newDate": {} }, "hash": "11fda70bef221a229716994ab47d038a" -} \ No newline at end of file +} diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json index 1f89a3dc2296..2843e7057aae 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -91,7 +91,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json index 32bf4357542b..3d6b481d0cc9 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -91,7 +91,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { @@ -150,7 +150,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_tag_properties.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_tag_properties.json index d17346ebd8f8..6db6c8461409 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_tag_properties.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_tag_properties.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -49,7 +49,7 @@ "method": "POST", "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -75,7 +75,7 @@ "query": {}, "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", "status": 200, - "response": "{\"refresh_token\":\"refresh_token\"}", + "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", "responseHeaders": { "connection": "keep-alive", "content-type": "application/json; charset=utf-8", @@ -91,7 +91,7 @@ "method": "POST", "url": "https://myregistry.azurecr.io/oauth2/token", "query": {}, - "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", + "requestBody": "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read", "status": 200, "response": "{\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.js b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.js index c3a786163cee..0e9c656812fd 100644 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.js +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.js @@ -5,7 +5,7 @@ module.exports.hash = "82965f404b1b6de09a87a0c9ca2f214f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -129,7 +129,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fbusybox%3Adelete") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fbusybox%3Adelete") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -220,7 +220,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.js b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.js index 63a86b36250d..dfce5c898ce6 100644 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.js +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.js @@ -5,7 +5,7 @@ module.exports.hash = "960e3f38f376227834424d743c66fdfd"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -129,7 +129,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.js b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.js index fbf64fe88a4d..acfa29d1f4a1 100644 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.js +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.js @@ -5,7 +5,7 @@ module.exports.hash = "dcff810d4d0706df804878094d241a65"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -76,7 +76,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -112,7 +112,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -132,7 +132,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -225,7 +225,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.js b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.js index 6c70b8f7c9d8..210f9cbacb0b 100644 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.js +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.js @@ -5,7 +5,7 @@ module.exports.hash = "d9cd539a36073732933764a8fab6f092"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -76,7 +76,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -112,7 +112,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -132,7 +132,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=registry%3Acatalog%3A*") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.js index aaa20a83cff4..7836020931b9 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.js @@ -5,7 +5,7 @@ module.exports.hash = "f9bbdaa73844efd839672edab2d4b0a0"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -131,7 +131,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Adelete") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Adelete") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -226,7 +226,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.js index 150fb1985743..07457cdde77d 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.js @@ -5,7 +5,7 @@ module.exports.hash = "8090c31a1a00a5ec5cb2ebdf89841afa"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -131,7 +131,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -220,7 +220,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -309,7 +309,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.js index 7db1183f20a1..bdc0b325cad0 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.js @@ -5,7 +5,7 @@ module.exports.hash = "d170176f2efbc45a807a1c289ea3b2c9"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -131,7 +131,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -220,7 +220,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -309,7 +309,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.js index eae69a9a037c..a529a4729bbb 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.js @@ -5,7 +5,7 @@ module.exports.hash = "594bfb9234d809371c4b94c94703c056"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -131,7 +131,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -220,7 +220,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -309,7 +309,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.js index 8883d65d99b9..a5b3ac44bfd5 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.js @@ -5,7 +5,7 @@ module.exports.hash = "147a8cd867784c38237ae829b991cfa9"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -131,7 +131,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.js index 1e2b2fc0f975..875f7135c2ff 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.js @@ -5,7 +5,7 @@ module.exports.hash = "b23998967742a3178b89fd7e848e3f73"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -76,7 +76,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -112,7 +112,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -132,7 +132,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -225,7 +225,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.js index 4d10c739f3b2..67153d035795 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.js @@ -5,7 +5,7 @@ module.exports.hash = "eb10b621759d8997ae90ca6946ad4da7"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -76,7 +76,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -112,7 +112,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -132,7 +132,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.js index c698c8ad139c..21dcbff5e41c 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.js @@ -5,7 +5,7 @@ module.exports.hash = "785adf0c604a66bdf97f6c0173a0030f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -131,7 +131,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.js index 0cf8b905f5d8..4ac14585c506 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.js @@ -5,7 +5,7 @@ module.exports.hash = "93e3ca0edbddaa36615555734b851aa3"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -76,7 +76,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -112,7 +112,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -132,7 +132,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -225,7 +225,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.js index bdbe554f6a35..7aeeadb5b97f 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.js @@ -5,7 +5,7 @@ module.exports.hash = "87f18837e2a3025aee8012c08679c922"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -76,7 +76,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -112,7 +112,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -132,7 +132,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.js index ca2e4399653a..f87e908c67a6 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.js @@ -5,7 +5,7 @@ module.exports.hash = "60e74ab8e3223d009ad58cf900091d80"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -131,7 +131,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.js index 25a144389d76..91a6adc556cf 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.js @@ -5,7 +5,7 @@ module.exports.hash = "964f80c9b84511975de7425ed386b91d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -131,7 +131,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', @@ -220,7 +220,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.js index 77e16d3161b4..10c34bbd444f 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.js @@ -5,7 +5,7 @@ module.exports.hash = "1380d803afa0ba41479dc915e7c88db0"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -75,7 +75,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagement.azure.com%2F.default") + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -111,7 +111,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .reply(200, {"refresh_token":"refresh_token"}, [ + .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ 'Server', 'openresty', 'Date', @@ -131,7 +131,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") + .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read") .reply(200, {"access_token":"access_token"}, [ 'Server', 'openresty', diff --git a/sdk/containerregistry/container-registry/src/base64.browser.ts b/sdk/containerregistry/container-registry/src/base64.browser.ts new file mode 100644 index 000000000000..20b910118e2c --- /dev/null +++ b/sdk/containerregistry/container-registry/src/base64.browser.ts @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +// eslint-disable-next-line @azure/azure-sdk/ts-no-namespaces +declare global { + function atob(input: string): string; +} + +/** + * Base64 decode + * + * @internal + * @param encodedString - + * @returns + + */ +export function base64decode(encodedString: string): string { + return atob(encodedString); +} diff --git a/sdk/containerregistry/container-registry/src/base64.ts b/sdk/containerregistry/container-registry/src/base64.ts new file mode 100644 index 000000000000..20e26288317f --- /dev/null +++ b/sdk/containerregistry/container-registry/src/base64.ts @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * Base64 decode + * + * @internal + * @param encodedString - + * @returns + */ +export function base64decode(encodedString: string): string { + return Buffer.from(encodedString, "base64").toString(); +} diff --git a/sdk/containerregistry/container-registry/src/containerRegistryTokenCredential.ts b/sdk/containerregistry/container-registry/src/containerRegistryTokenCredential.ts index 369063ff1c1b..03ebb725fa09 100644 --- a/sdk/containerregistry/container-registry/src/containerRegistryTokenCredential.ts +++ b/sdk/containerregistry/container-registry/src/containerRegistryTokenCredential.ts @@ -6,8 +6,7 @@ import { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth" import { AcrAccessToken, AcrRefreshToken, GeneratedClient } from "./generated"; import * as Mappers from "./generated/models/mappers"; import * as Parameters from "./generated/models/parameters"; - -const threeHoursInMs = 3 * 60 * 60 * 1000; +import { base64decode } from "./base64"; export interface ContainerRegistryGetTokenOptions extends GetTokenOptions { service: string; @@ -135,9 +134,24 @@ export class ContainerRegistryTokenService { } // ACR refresh token expires after three hours + const jwtParts = acrRefreshToken.refreshToken.split("."); + if (jwtParts.length < 3) { + throw new Error("Invalid JWT structure from ACR refresh token."); + } + if (!jwtParts[1]) { + throw new Error("Invalid JWT payload."); + } + + const jwtPayload = JSON.parse(base64decode(jwtParts[1])); + if (!jwtPayload.exp) { + throw new Error("Invalid JWT payload structure. No expiration."); + } + + // JWT expiry is in seconds + const expiry = Number.parseInt(jwtPayload.exp) * 1000; return { token: acrRefreshToken.refreshToken, - expiresOnTimestamp: Date.now() + threeHoursInMs + expiresOnTimestamp: expiry }; } diff --git a/sdk/containerregistry/container-registry/test/public/utils.ts b/sdk/containerregistry/container-registry/test/public/utils.ts index 0cc6d646f2bd..87aca77f4265 100644 --- a/sdk/containerregistry/container-registry/test/public/utils.ts +++ b/sdk/containerregistry/container-registry/test/public/utils.ts @@ -19,6 +19,7 @@ const replaceableVariables: Record = { REGISTRY: "myregistry" }; +const expiryReplacement = "eyJleHAiOjg2NDAwMDAwMDAwMDB9"; // base64 encoding of '{"exp":8640000000000}' ; export const recorderEnvSetup: RecorderEnvironmentSetup = { // == Recorder Environment Setup == Add the replaceable variables from // above @@ -35,11 +36,17 @@ export const recorderEnvSetup: RecorderEnvironmentSetup = { // replacements within recordings. customizationsOnRecordings: [ (recording: string): string => - recording.replace(/"refresh_token":"[^"]+"/g, `"refresh_token":"refresh_token"`), + recording.replace( + /"refresh_token":"[^"]+"/g, + `"refresh_token":"sanitized.${expiryReplacement}.sanitized"` + ), (recording: string): string => recording.replace(/access_token=(.+?)(&|")/, `access_token=access_token$2`), (recording: string): string => - recording.replace(/refresh_token=([^&]+?)(&|")/, `refresh_token=refresh_token$2`) + recording.replace( + /refresh_token=([^&]+?)(&|")/, + `refresh_token=sanitized.${expiryReplacement}.sanitized$2` + ) ] };