diff --git a/sdk/communication/communication-identity/CHANGELOG.md b/sdk/communication/communication-identity/CHANGELOG.md index 14f0e6f930af..f24602d6ffb8 100644 --- a/sdk/communication/communication-identity/CHANGELOG.md +++ b/sdk/communication/communication-identity/CHANGELOG.md @@ -8,7 +8,7 @@ - Updated our internal core package dependencies to their latest versions in order to add support for Opentelemetry 1.0.0 which is compatible with the latest versions of our other client libraries. - Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features - Added support to build custom Teams endpoint using M365 Teams identities - - `CommunicationIdentityClient` added a new method `exchangeTeamsUserAadToken` that provides the ability to exchange an AAD access token of a Teams user for a Communication Identity access token + - `CommunicationIdentityClient` added a new method `getTokenForTeamsUser` that provides the ability to exchange an AAD access token of a Teams user for a Communication Identity access token ### Breaking Changes diff --git a/sdk/communication/communication-identity/README.md b/sdk/communication/communication-identity/README.md index 3acf801d7ef4..07711d8e3ba8 100644 --- a/sdk/communication/communication-identity/README.md +++ b/sdk/communication/communication-identity/README.md @@ -125,10 +125,10 @@ await client.deleteUser(user); ### Exchanging AAD access token of a Teams User for a Communication access token -Use `exchangeTeamsUserAadToken` method to exchange an AAD access token of a Teams user for a new `CommunicationAccessToken` with a matching expiration time. +Use `getTokenForTeamsUser` method to exchange an AAD access token of a Teams user for a new `CommunicationAccessToken` with a matching expiration time. ```typescript -await client.exchangeTeamsUserAadToken(''); +await client.getTokenForTeamsUser(''); ``` ## Troubleshooting diff --git a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js similarity index 64% rename from sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js rename to sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js index e44d1b7ea1de..1354499e46c9 100644 --- a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js +++ b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "e24bddbfb6f5d9e13969fc1ceaaeda82"; +module.exports.hash = "c5f66726f0c736e2fbc272f2f87879bd"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -25,17 +25,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - WEULR2 ProdSlices', + '2.1.12171.14 - NEULR1 ProdSlices', 'Set-Cookie', - 'fpc=AuI3S2CPnslLteckgKfNRWY; expires=Sat, 20-Nov-2021 14:53:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AltTCh2f8jRIisDaEHb5yWg; expires=Thu, 25-Nov-2021 23:13:09 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRlb1zyxkm4SxduWJp8i2yEwOKjsXXl9l9lCDS27Y0APNGhxgIueu1Eoz37ZpgBThKL5IirG3rm377mrU9T84XaJb2c63h_PbM8gQYPJnXmx9xDafNQDK11gtyHnE4dqoerVO2oc6xUQ7ZHkgW53gogxH_8NHR3khmmwKfmj-IicgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0MU6fwfhvo7a2J-UzfL8o1PzzxzjaNi2O-aQlxDrIrftNYl2F1Y7BZ4Dq5GtAeEwjj12Ff5hy8srJgk1SzM-R_nLEVUxfAl7nP_lI43iS7fXRIDNSj1qSWjhdV8aL5Dn3xekN60Z_LIu6xFB0I_GGrQnYsfmW1C3K_JFkxIeGuogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:24 GMT', + 'Tue, 26 Oct 2021 23:13:09 GMT', 'Content-Length', '980' ]); @@ -60,24 +60,24 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - WEULR2 ProdSlices', + '2.1.12158.6 - WEULR2 ProdSlices', 'Set-Cookie', - 'fpc=Ak9wEFYrFOVCu_-7F70X-8E; expires=Sat, 20-Nov-2021 14:53:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Aobr8SgTRQhMuXTKb1v5E24; expires=Thu, 25-Nov-2021 23:13:09 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrsAyzX_U1za5xyTBfbPpIk7rCekT5ZiB49JxtQyVf5LOCMdgdXmI4A9DkO-7tl2i-QamF5I7PV-J_0rp-Frxt4_373zu-AiIDn85dwYVKVdEGDCjo1rajLegcABMcwj94vzbvhxVa9cu8UE7kX_Se6PABnHF3KiIKPwVJKEH7vAYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrVQ0NzCvltcmcpKLtrQygupEdWKYRcJpB1G4MHzlMauR66KdVFlEvTtrUqP62DoeH1audYz8lhbL16BFGxx6oPCGAvODJhJFXL_b62Wg87WCQLWY86DRDPftvR28DkzlPO_R2psezd-ae7m6r18Cd1mSdZnQRJn60VOgNvHH6jEcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:24 GMT', + 'Tue, 26 Oct 2021 23:13:09 GMT', 'Content-Length', '1753' ]); nock('https://endpoint', {"encodedQueryParams":true}) .post('/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token', "client_id=00000000-0000-0000-0000-000000000000&username=MSALUsername&password=MSALPassword&scope=M365Scope%20openid%20profile%20offline_access&grant_type=password&client_info=1&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|371,0,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=00000000-0000-0000-0000-000000000000&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","scope":"https://auth.msft.communication.azure.com/VoIP M365Scope","expires_in":3599,"ext_expires_in":3599,"access_token":"sanitized","refresh_token":"0.AYEAy_3zvsvcqUGueWSPIqMtInzwuq-61iBPn-ogOSCA_KeBAMw.AgABAAAAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P-Xcc5vmH8JsKQ4_ISickrhmzg9D7h6WfrTR9DmWiE3R6wtgPx0TrdjNJx1sZ-fEQNxvy6kHN4SbjrS-CWR7tbGfyuNb3iISN9C6o0dop0VBAbtOBBFGY7IgGdY_V1vf-KfESYVa-1CbBhM_WWjI6DRVmSOkcRjaeUzqyutDflMjfyKTlUCtQOHCY12mGTzUCBi0ASFEqdNaIRWM3EBTxXhXW88ApIMTZPEqyQTIYSSXFmJImiFoe2WqhsnkE8ISxDiXdPmHApGGdf7fOu9U9KzgW-Pvf4Tm8OT99d0oYAc_5keTYz5h6-7f1kPjMBCVXl7s4JpJsm1T-HYkLJk9EIC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iLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJTREtVc2VyQGFjc2F1dGh0ZXN0Lm9ubWljcm9zb2Z0LmNvbSIsInJoIjoiMC5BWUVBeV8zenZzdmNxVUd1ZVdTUElxTXRJbnp3dXEtNjFpQlBuLW9nT1NDQV9LZUJBTXcuIiwic3ViIjoicmhraDI0Q2wxR0dQbkhpU3N0dzR4WXhPbV9rRGtVVEVOSWlUazRhLXkwOCIsInRpZCI6ImJlZjNmZGNiLWRjY2ItNDFhOS1hZTc5LTY0OGYyMmEzMmQyMiIsInV0aSI6ImREVjEyVlhuZVVla0dKWjB5OENqQUEiLCJ2ZXIiOiIyLjAifQ.XzyqD9Gen6RnoClgswVxb5PHQwL_VlpG8MTchxfhGTXt2dEwehC-ds5qJe_lOpoTFEp2JLu25tA2-EtZdVETJyp-h582YKnqK4dpZ6gcjnRyxXvsuzWwBLAfyo5QL3oyjcnVI2bXaMsQcwLAx9yPU8OzABD3vyE61CuY4GR3jS3JjWK8mL34kncVel9d94cxCfC01uDJqsPNdVSuzsb7sMK0T9B6U9N_Sfob8pEwFv6gsvZtBbU4tlsFjyJdP99NLCXROlG7jAIlhDxRC9B5njaboCvPaGCw8ca0cLbvLqEObPyhk3c1y-Lk1cJjnIY9IB3mdcXht-7x31gD3l8DcA","client_info":"eyJ1aWQiOiI4MWU3OGNhOC1hZGU1LTQ5OTgtOWMwNS0xZTE3Zjg1MGZjZmUiLCJ1dGlkIjoiYmVmM2ZkY2ItZGNjYi00MWE5LWFlNzktNjQ4ZjIyYTMyZDIyIn0"}, [ + .reply(200, {"token_type":"Bearer","scope":"https://auth.msft.communication.azure.com/VoIP M365Scope","expires_in":3599,"ext_expires_in":3599,"access_token":"sanitized","refresh_token":"0.AYEAy_3zvsvcqUGueWSPIqMtInzwuq-61iBPn-ogOSCA_KeBAMw.AgABAAAAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P_1iKbfOqUgrGo_YwyQVeHqc1M-7z-wkE3DMkS8DuwQ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M2ZkY2ItZGNjYi00MWE5LWFlNzktNjQ4ZjIyYTMyZDIyIn0"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', @@ -95,25 +95,25 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - NEULR2 ProdSlices', + '2.1.12158.6 - NEULR1 ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=ApWQKuKx83hGuqU__oSViYO4k9TnAQAAAOV1A9kOAAAA; expires=Sat, 20-Nov-2021 14:53:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ApIVoR-yrd1NodDcmEPvZiW4k9TnAQAAAIWCCtkOAAAA; expires=Thu, 25-Nov-2021 23:13:09 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:25 GMT', + 'Tue, 26 Oct 2021 23:13:09 GMT', 'Content-Length', - '4593' + '4545' ]); nock('https://endpoint', {"encodedQueryParams":true}) .post('/teamsUser/:exchangeAccessToken', {"token":"sanitized"}) .query(true) - .reply(200, {"token":"sanitized","expiresOn":"2021-10-21T15:53:24.6000523+00:00"}, [ + .reply(200, {"token":"sanitized","expiresOn":"2021-10-27T00:13:08.9147164+00:00"}, [ 'Content-Length', '818', 'Content-Type', @@ -121,7 +121,7 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'cJcNoyzKmEa79VQwdyOYfA.0', + 'RVs0N8eewEGR9te2/mbeLw.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', @@ -129,11 +129,11 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'api-supported-versions', '2021-03-31-preview1, 2021-10-31-preview', 'X-Processing-Time', - '517ms', + '415ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '05X5xYQAAAABjujH7VDRcQptRUOFCWMzPUFJHMDFFREdFMDkxMQBmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', + '0hYt4YQAAAAB2MnUC/nhsR4TkTeey6ctSUFJHMDFFREdFMDYxMABmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', 'Date', - 'Thu, 21 Oct 2021 14:53:26 GMT' + 'Tue, 26 Oct 2021 23:13:10 GMT' ]); diff --git a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js similarity index 78% rename from sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js rename to sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js index dc3a6c28d9b5..1023e9102b31 100644 --- a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js +++ b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "8f4f0ee6735c115004fb161bc138e853"; +module.exports.hash = "b1f4170b74dcc0b449f5079440989357"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -15,17 +15,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 't2z1C6D/LEGZhcMiluoCLw.0', + 'Zaoy9VDEL0W6xx5b9F/WJw.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', '00000000-0000-0000-0000-000000000000', 'X-Processing-Time', - '24ms', + '19ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '05n5xYQAAAAB2YsWTCwSMQr2qB2uvmSNWUFJHMDFFREdFMDkxOQBmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', + '0h4t4YQAAAAAK1c8zMjSeRrzKB4I5r/7XUFJHMDFFREdFMDkxMwBmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', 'Date', - 'Thu, 21 Oct 2021 14:53:27 GMT' + 'Tue, 26 Oct 2021 23:13:11 GMT' ]); diff --git a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js similarity index 78% rename from sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js rename to sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js index 840cec802c5d..f486a33be1fc 100644 --- a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js +++ b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "48f6b11ea338bf8ba379b885e4fa045e"; +module.exports.hash = "65c32ed61371c7d9b98a6921173cf0fd"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -15,17 +15,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - '/GF7t8CdDkyR73UiNxcHDg.0', + '6Y78qoVe+UmqyBHZsTCo4A.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', '00000000-0000-0000-0000-000000000000', 'X-Processing-Time', - '32ms', + '28ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0535xYQAAAACy5LHjggcQTq0Gn4c+UpK4UFJHMDFFREdFMDcyMABmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', + '0iIt4YQAAAABRVqd1kOPHQ55BahalPjTTUFJHMDFFREdFMDYxMgBmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', 'Date', - 'Thu, 21 Oct 2021 14:53:27 GMT' + 'Tue, 26 Oct 2021 23:13:13 GMT' ]); diff --git a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js similarity index 78% rename from sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js rename to sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js index 668ba73a495c..af26552a06b9 100644 --- a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js +++ b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "b06401222f6495704496033a41a8f3ac"; +module.exports.hash = "c9d136c192e3bff9eb77825206db2097"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -15,17 +15,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'x9aTyaEVc06Seipy0Rjipg.0', + 'hSZn3Mr020efqwfjiwyStQ.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', '00000000-0000-0000-0000-000000000000', 'X-Processing-Time', - '18ms', + '21ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0535xYQAAAAD8198XQBMvR7mbsqf1CMtdUFJHMDFFREdFMDYwOABmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', + '0h4t4YQAAAAB7QD9p7gocQqQr6FLyO3GyUFJHMDFFREdFMDYxOABmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', 'Date', - 'Thu, 21 Oct 2021 14:53:26 GMT' + 'Tue, 26 Oct 2021 23:13:12 GMT' ]); diff --git a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js similarity index 72% rename from sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js rename to sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js index ec15e8d119b2..dd2fa5b683b0 100644 --- a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js +++ b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_successfully_exchanges_a_teams_user_aad_token_for_a_communication_access_token.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "e24bddbfb6f5d9e13969fc1ceaaeda82"; +module.exports.hash = "c5f66726f0c736e2fbc272f2f87879bd"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -25,17 +25,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12158.6 - WEULR1 ProdSlices', + '2.1.12171.14 - NEULR2 ProdSlices', 'Set-Cookie', - 'fpc=AuPqB3_Tnn1GryNDacPmv3w; expires=Sat, 20-Nov-2021 14:53:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AuYIRLRjK75Dk5NPom_bLyM; expires=Thu, 25-Nov-2021 23:13:05 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJ-3QnqpExVhR6IHsDNfyw4PmsagsQegqnbaiWZ0WW3QxPP9kVad8lmgwjgpnhCq_5P_zYiB4YVZeaS9P0gh8R8PNybdoSaGWxC5JPTc8OWh_J_GwpXq5VLowD207fM6AlYLqbGGo67pdo1WQXF97wZKYJGXMZT05lXeBuPwAQ50gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_2-y3d0Wiu-nCAnovnyjDeeHZ_1YXLqDucNof-RFKJ5MLVtP9qyYKSYZc5oBnzeuV2gIlJx5VMVFQ78yMPMWMinFydjoj2qsFbYOVh207HjRPfr2RpvyRIU74ot4RvwzM8-BD8l4VhmfKEA98dDo0CZrxpJMPf1bSwbVru2NKC8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:20 GMT', + 'Tue, 26 Oct 2021 23:13:04 GMT', 'Content-Length', '980' ]); @@ -60,24 +60,24 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - NEULR1 ProdSlices', + '2.1.12158.6 - NEULR1 ProdSlices', 'Set-Cookie', - 'fpc=AieuXi5lY5xDuelS2LL9rcM; expires=Sat, 20-Nov-2021 14:53:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ahg9eelgr-1PmVxVhjFSKD4; expires=Thu, 25-Nov-2021 23:13:05 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJT_U3uxxV4BC15BrpiGWT-vVI2BGC9iAqAe8bXo5OGXzKfuv-NcnCgT8rR4tVhdV84Va5Tt8F1QDegWtCVTG_YHtXGdPI84rSIKE79GygH3K8EcOs5AQ1d3PaDS4psIHSo6cVrFvnvViI1men3h5asJ_jPmBQ-m47uOXBpvci4sgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBtc6sDSnX0S2FIe8xeQQtp3zgYs136sr0rXxgsYt8eUK4tZEm5NfBPy1aAGhmiqRqCK2pbzO0ogbwhmboLJLNzj_fFix7_PCh2JgkzPcMZyhBUM8RqehsAxQqMFwYBevbxgj7HiGHZK0zy9B_Vm_xxbiAXpmB2_muLf1qwAVumMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:20 GMT', + 'Tue, 26 Oct 2021 23:13:05 GMT', 'Content-Length', '1753' ]); nock('https://endpoint', {"encodedQueryParams":true}) .post('/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token', "client_id=00000000-0000-0000-0000-000000000000&username=MSALUsername&password=MSALPassword&scope=M365Scope%20openid%20profile%20offline_access&grant_type=password&client_info=1&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|371,0,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=00000000-0000-0000-0000-000000000000&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","scope":"https://auth.msft.communication.azure.com/VoIP M365Scope","expires_in":3599,"ext_expires_in":3599,"access_token":"sanitized","refresh_token":"0.AYEAy_3zvsvcqUGueWSPIqMtInzwuq-61iBPn-ogOSCA_KeBAMw.AgABAAAAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P9L6tmKpM6f2uQ5I_w8iB2Hz2q4Sb-8vlc_LGVj2vAhW93Me7NcK_5pRcMRa4Jr_2jw6BKzAoWwVsPahuh54IVST9IZXkR-r0sKmojEqgat_PwOwDqCtvNBbdeMOi-J0lYt-LhLQsn5gZ-gRktJAt381x3w0UFXPl7pDJDHt9x-LxRM00deHZlOPzNJK7lvb2xMgyNyNjIb607Zg8HnRj3ikD5TFsHhQ1OPBMVs0M9OsVOl4RSqrUI4i2aiSEL4MoDVZj1LtKt2X6Fe-LBIrO_qot86SVl9RZQPKpQa0xfFLeyz0YQcBlJTHs3PF8vcJDPqtC7OpykWJ5DHCLm8Kwlb_8K6ogQuv-MxGB51KeIMt2AJz-13aeElrMbfFPx-whFVf-_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TREtVc2VyQGFjc2F1dGh0ZXN0Lm9ubWljcm9zb2Z0LmNvbSIsInJoIjoiMC5BWUVBeV8zenZzdmNxVUd1ZVdTUElxTXRJbnp3dXEtNjFpQlBuLW9nT1NDQV9LZUJBTXcuIiwic3ViIjoicmhraDI0Q2wxR0dQbkhpU3N0dzR4WXhPbV9rRGtVVEVOSWlUazRhLXkwOCIsInRpZCI6ImJlZjNmZGNiLWRjY2ItNDFhOS1hZTc5LTY0OGYyMmEzMmQyMiIsInV0aSI6Ijd5MFZMd1hQaFVHTEhhck9rREdvQUEiLCJ2ZXIiOiIyLjAifQ.FjUTKKpylO1QkPXXt34FFXK16roqWQxNU4M4wDDt6bVrtw2jAG4ANSoYumN-OQ6_fb40QZQrQ50jPdzO2MtUgf23mPrjqiXrg4DM2wwG2UH0HkBrdbVmZyAIOqUzuvv4LWp4mr45vu4I6QMVGQc1lPQebAFkacYoQ0scjasL-FMcosgQnNSSxI5x1XHxJGTdlUX7YRTwhSNeq8JG-7epva_3MliNr1M8vFbKJe7RrZQdpUnyWnB9vcCCtFcROcFfiS26uFJTyrQWIaJhuyrp_zhGamQq8y0EnlHaHY7_Kv_yUCLl6zFDIwfOWijEqbrI26mQeEk19_A_9sAvjo6Hbg","client_info":"eyJ1aWQiOiI4MWU3OGNhOC1hZGU1LTQ5OTgtOWMwNS0xZTE3Zjg1MGZjZmUiLCJ1dGlkIjoiYmVmM2ZkY2ItZGNjYi00MWE5LWFlNzktNjQ4ZjIyYTMyZDIyIn0"}, [ + .reply(200, {"token_type":"Bearer","scope":"https://auth.msft.communication.azure.com/VoIP M365Scope","expires_in":3599,"ext_expires_in":3599,"access_token":"sanitized","refresh_token":"0.AYEAy_3zvsvcqUGueWSPIqMtInzwuq-61iBPn-ogOSCA_KeBAMw.AgABAAAAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P8O1R-Xly6BBUR-IftTgbxjKv-GNLN9_IWcO93UlseeBHXvLZ-t3FsU0s8almQpLUqSRhQ_Ry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Cache-Control', 'no-store, no-cache', 'Pragma', @@ -95,19 +95,19 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - WEULR2 ProdSlices', + '2.1.12158.6 - NEULR1 ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Agx2DEa-2L5JgJax0NTzY0K4k9TnAQAAAOF1A9kOAAAA; expires=Sat, 20-Nov-2021 14:53:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Aq7d8S0K1M5BttbT2eQZmdy4k9TnAQAAAICCCtkOAAAA; expires=Thu, 25-Nov-2021 23:13:05 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:21 GMT', + 'Tue, 26 Oct 2021 23:13:05 GMT', 'Content-Length', - '4593' + '4545' ]); nock('https://endpoint', {"encodedQueryParams":true}) @@ -131,17 +131,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - NEULR1 ProdSlices', + '2.1.12171.14 - WEULR1 ProdSlices', 'Set-Cookie', - 'fpc=AvT6UlRoIghFiBEK7OB7-O8; expires=Sat, 20-Nov-2021 14:53:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AnqTvyR0uRBOuE8iwecXHnk; expires=Thu, 25-Nov-2021 23:13:05 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIWNUkDWiUR4TKOOldhkHKRLPZcQpMEzuTyP4zqz2g2luC3kaTdltdDogrQ4Vp7mRRvnN44ctleJ4wj3nYGUnJmR-9jo1pIKCaSNNk7TJfYtlOQxDDf-zZYnCoDgbiMs_aOU6tFtXkgY73ytPLsZjrqjF1XuITJSvlxbSzmQuNScgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7XKRreYPDTGKqMe1dm530gPiVWCV0HljLrtvfKuk_3gYfGacd4cDykvWdotDDQbBYkKaIoHQpOn3nRTxSzJ5Zj_g3h96X0W-NCSYYYCtUEN4I2EcD2v06nHFQBj2kkpfYKBMVagNhHgoJyrnj5FBxXqTRLbHaJFVsViQGHg8VKwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:21 GMT', + 'Tue, 26 Oct 2021 23:13:05 GMT', 'Content-Length', '980' ]); @@ -166,17 +166,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - EUS ProdSlices', + '2.1.12158.6 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Av3nOja3RMZAuE02RLFsmhc; expires=Sat, 20-Nov-2021 14:53:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AqNzJI-hO41Mtd61ppSnvI4; expires=Thu, 25-Nov-2021 23:13:05 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrgw2CVYbkBNCvtkFCgh2K4spbjE1HKXYxaAGzIDpZJX9oY6fND3AjH_bj51nibjp6skI0UELTVS01yPfAxUewmbdd7M0WMuK3kTx8I2VlyA4WDAClhd6FStKEI-qiudqHdWAF3KjYc3gqwVw9ZiJuBjGf8I9CHKaPjuwdopLDaqwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUK91GFKKiXI48h-Q_a0-_Qf0gzZgtyF_HH_rvRUI-Vf6ljVnCyXEE76QtDhWKf9n-wAHQpABIeGzQ2llhmzlB4DFgPuO44L9z1rleJkcUn5uPEjAdVM2wcTVCXcD3IIHytCqn-JR2lmCzrwXwOafY0a0JmSx3SsvnoOBfhaHESYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:21 GMT', + 'Tue, 26 Oct 2021 23:13:05 GMT', 'Content-Length', '1753' ]); @@ -201,17 +201,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - NCUS ProdSlices', + '2.1.12158.6 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Aqoy3CUCWX9ChNJwKLewecg; expires=Sat, 20-Nov-2021 14:53:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AhJC2x1be6FAmePADOu7cIUo7iuqAQAAAIGCCtkOAAAA; expires=Thu, 25-Nov-2021 23:13:05 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:21 GMT', + 'Tue, 26 Oct 2021 23:13:05 GMT', 'Content-Length', '1327' ]); @@ -219,7 +219,7 @@ nock('https://endpoint', {"encodedQueryParams":true}) nock('https://endpoint', {"encodedQueryParams":true}) .post('/teamsUser/:exchangeAccessToken', {"token":"sanitized"}) .query(true) - .reply(200, {"token":"sanitized","expiresOn":"2021-10-21T15:53:20.7984883+00:00"}, [ + .reply(200, {"token":"sanitized","expiresOn":"2021-10-27T00:13:04.2643655+00:00"}, [ 'Content-Length', '818', 'Content-Type', @@ -227,7 +227,7 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - '/O23ETcUYkK4C118MhNGUQ.0', + 'Soiiz7NRwku4XRKlxspEQA.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', @@ -235,11 +235,11 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'api-supported-versions', '2021-03-31-preview1, 2021-10-31-preview', 'X-Processing-Time', - '365ms', + '354ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '04n5xYQAAAACTcSE1ZiwzR69t15kByrl3UFJHMDFFREdFMDkwNgBmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', + '0gYt4YQAAAACp1omZAyngQZvZwMa4CaDbUFJHMDFFREdFMDkxNABmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', 'Date', - 'Thu, 21 Oct 2021 14:53:22 GMT' + 'Tue, 26 Oct 2021 23:13:06 GMT' ]); diff --git a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js similarity index 83% rename from sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js rename to sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js index 9cfd4cccb3b4..66415e223cc1 100644 --- a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js +++ b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "48f6b11ea338bf8ba379b885e4fa045e"; +module.exports.hash = "b1f4170b74dcc0b449f5079440989357"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -25,17 +25,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - WEULR2 ProdSlices', + '2.1.12171.14 - WEULR1 ProdSlices', 'Set-Cookie', - 'fpc=Ahlh9YUd8gJLpI1GI-dRBfU; expires=Sat, 20-Nov-2021 14:53:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AhuxiOdnXPpPiRbtOGK70DI; expires=Thu, 25-Nov-2021 23:13:06 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrz4wOdTkaFwVpP2GKWMRpwPjrw0xcT_sfOLyvkT_NBm5z47fQ6otoAdvm8oyis3iTvLjPCe1638IdX5JOraLp5So1gCpplzt3ruRihHt1uqONxgMqPMF2TMiT_o93WIZiE7P5Y8a6iVWHCEZ2ulKUNn7NC4kVorQ3afoi72-v4QogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDLQikWUXenO2H527pXNKgj_mf8ev9MwvduyicBsdZ_SRV4uoIzboqQsH_-5IiXA9T4j8z4Hc3JrW4k_pWSzKDzR3dLyp0vOjpRKjbRSxOhNfhMoBgXhhUOGq1-0eLySgIo8BvqADl4Lm5KIFOoppbIhN5Frz7ZffCnNszEc-e2QgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:23 GMT', + 'Tue, 26 Oct 2021 23:13:06 GMT', 'Content-Length', '980' ]); @@ -60,17 +60,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - SCUS ProdSlices', + '2.1.12158.6 - EUS ProdSlices', 'Set-Cookie', - 'fpc=AqPTYCCtUoNGtufs7ql5GoQ; expires=Sat, 20-Nov-2021 14:53:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ahd0vZ0it6lPtJMF1qtRbmw; expires=Thu, 25-Nov-2021 23:13:06 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrj7GKCJmIg3ae5QEjlwbnvpnkIJowymKGcSqc87sD0rkuUd6XNd84KQJGvS2f8h1lHxUKY-VmY8WmlkXcsm41ZE4k4TSDAF4Aw5KocB6L2TN8DENpZjmtk3rLQQXUMtaIu8edsbJUL2RhYNAUZJJ5vaFNA053MleK6yUSqkaLZIcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQMLG_8XU6LI5gm9naCm_3papDjKBokEV8nIZ9QVPwoexx93GHSxsjveSUfIbWQSuzPdmajCvYMnntAhIqRzw5gpOLqkDonpxOw6GQzrw2RAHhH9vxBBWv735Eu7toS8OPjxECOtljnnELFxk-ao7MhE1gf5SBNffj66XVdDiAeggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:23 GMT', + 'Tue, 26 Oct 2021 23:13:06 GMT', 'Content-Length', '1753' ]); @@ -95,17 +95,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - EUS ProdSlices', + '2.1.12158.6 - SCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=ApBRLKIDIwJKhzx7MlEYhTM; expires=Sat, 20-Nov-2021 14:53:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Anqve43BF-tFjO5X2bWEn34o7iuqAQAAAIKCCtkOAAAA; expires=Thu, 25-Nov-2021 23:13:06 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:23 GMT', + 'Tue, 26 Oct 2021 23:13:06 GMT', 'Content-Length', '1327' ]); @@ -121,17 +121,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'XOQSTWv3YUGPAkIVHXW1gg.0', + 'pxNXxo2kikaduylZ4G+2qQ.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', '00000000-0000-0000-0000-000000000000', 'X-Processing-Time', - '24ms', + '18ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '05H5xYQAAAABYKeG6Hw5eQYeG/gKY3P1hUFJHMDFFREdFMDkyMABmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', + '0got4YQAAAACkvGUq/SRAQYttGlsij4BCUFJHMDFFREdFMDYxMwBmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', 'Date', - 'Thu, 21 Oct 2021 14:53:24 GMT' + 'Tue, 26 Oct 2021 23:13:07 GMT' ]); diff --git a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js similarity index 84% rename from sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js rename to sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js index e117d6c6c811..1a0db50c7643 100644 --- a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js +++ b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_expired_teams_user_aad_token.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "b06401222f6495704496033a41a8f3ac"; +module.exports.hash = "65c32ed61371c7d9b98a6921173cf0fd"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -27,15 +27,15 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-ests-server', '2.1.12158.6 - NEULR1 ProdSlices', 'Set-Cookie', - 'fpc=Alo7Fbt-vNxClV8cV5hU3oo; expires=Sat, 20-Nov-2021 14:53:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Atd-1cpV70tPj65VvoMrDDg; expires=Thu, 25-Nov-2021 23:13:08 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrO0qyXz21LGUZfPDF21jHBou59U6aSFr01-LtnWHdIcBeU_rvfou8jQ6wbLglBV7NrP_AeIbtBRc4zBhbN6xkDJ_0CiqN5klTcM1NTUE4Oe4GVNyeY6IyRJM8cor5sr5iY6t7MysFpp3JWhlSJHxiEwInG7I_VyyJfcJZCV25_lMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrv1N95rsmbv1bmEQq5c-aVuPx4Uw98_gDHMdgPHRXl9cC21ZzzFxYliTvMzpCWO3RR9Y2PVipipGaH5WdxFqVeQSzd8ajjYUXb3ROWiV8ZTuzZa_8OhO7Bce_YJXGfwDhHaQDQt38gg9yxHprI7P69S3W0G3tfTTgTMtgnXwdG0ogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:22 GMT', + 'Tue, 26 Oct 2021 23:13:08 GMT', 'Content-Length', '980' ]); @@ -60,17 +60,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12108.11 - EUS ProdSlices', + '2.1.12158.6 - WUS2 ProdSlices', 'Set-Cookie', - 'fpc=AmCbu-xoTc9BsIohdLJgd3o; expires=Sat, 20-Nov-2021 14:53:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AouZIdHpr3ROp-AVBwiZS7U; expires=Thu, 25-Nov-2021 23:13:08 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_ws5DDPbrqHzhIotBrwgEt5zJPPFE9ZRaHE1beBqh1o9ti2KNY3U2CuH1Z-2eyUVa5f_WWMF8a2jXTG42jxJbjoFkkAu_FVWDfIfd7BII29lNA77E0RMum-7K4pig6YbtDpV6pHDNlesjFzDBFqlvQUZwVc1suwg1b34re9_hY8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrZHbTgdxggO60ii2KQ99KvwQ0DVMlsAIqHnh6ACcWlMZF3eGgZEBkeS3A9uwGzD1TM1C7yQzjTyyf55HNtVgiyv5n20TUQYqgpFKElncTojQwVs00Lq-L8OnuFwOXIg3T785ExmbLn3t60MU2iSjXnU6U-jjEkTeAfhZDnK8C1oAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:23 GMT', + 'Tue, 26 Oct 2021 23:13:08 GMT', 'Content-Length', '1753' ]); @@ -95,17 +95,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12158.6 - WUS2 ProdSlices', + '2.1.12158.6 - EUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ah1b54KfPIJFouS_pO2cynU; expires=Sat, 20-Nov-2021 14:53:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ao5_mBTJ2PVHlNsYN6TPr4o; expires=Thu, 25-Nov-2021 23:13:08 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:23 GMT', + 'Tue, 26 Oct 2021 23:13:08 GMT', 'Content-Length', '1327' ]); @@ -121,17 +121,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'FB4dTbT1I0St6YnPPQhw3w.0', + 'nz04AyKn3kGOKRu6vm9doQ.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', '00000000-0000-0000-0000-000000000000', 'X-Processing-Time', - '15ms', + '25ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '05H5xYQAAAAC1J12PsVQNSIGE9lcBGxexUFJHMDFFREdFMDkyMQBmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', + '0hIt4YQAAAABZomyKhEkoRKCZe/khmGFDUFJHMDFFREdFMDYyMQBmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', 'Date', - 'Thu, 21 Oct 2021 14:53:23 GMT' + 'Tue, 26 Oct 2021 23:13:08 GMT' ]); diff --git a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js similarity index 83% rename from sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js rename to sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js index 4445f0e454d5..2504929b8c5e 100644 --- a/sdk/communication/communication-identity/recordings/node/exchange_teams_user_aad_token_for_acs_token_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_empty_teams_user_aad_token.js +++ b/sdk/communication/communication-identity/recordings/node/get_token_for_teams_user_playbacklive_aad/recording_throws_an_error_when_attempting_to_exchange_an_invalid_teams_user_aad_token.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "8f4f0ee6735c115004fb161bc138e853"; +module.exports.hash = "c9d136c192e3bff9eb77825206db2097"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -25,17 +25,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12158.6 - NEULR2 ProdSlices', + '2.1.12171.14 - NEULR1 ProdSlices', 'Set-Cookie', - 'fpc=ArgeFKYGE2dCuTsJFXdBps0; expires=Sat, 20-Nov-2021 14:53:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AsGuutZBmQpJtK1GFnir-ZY; expires=Thu, 25-Nov-2021 23:13:07 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNIGwSaip4EO9xh6DPgUI8RYu6oyR8bdTP4DdUp49rw8WpgSPUMXH1CYF9oG_kzthbxzZqQge0qy686lpodgDREg7ORcQzMgZiwRaqqrcQrkFUFMMOy2kt4Ytjt0y8XtnRJZIUMeQWvAeHckdVmaF2uF7fYdER03NAURbjWejtI4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWonXmWSiusyoxkSFxawC7JDlbR0DU-AhmEiy-Y7YDFAysYxqw5cxNdJXiORSUmVAiMW0OkqgEPjf3S3FSFuZrOMQM4w3fL9P9qDiS2Xc-7Jfvs437tlrsFnAsbXNJ-gXnwU8Cn2tGrfW9pZk3r9OYWtoDornzjmWHf0hxx24sgsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:22 GMT', + 'Tue, 26 Oct 2021 23:13:07 GMT', 'Content-Length', '980' ]); @@ -62,15 +62,15 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-ests-server', '2.1.12158.6 - WUS2 ProdSlices', 'Set-Cookie', - 'fpc=ArDSmF5bpdhKiytd0TDr-rs; expires=Sat, 20-Nov-2021 14:53:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ao-_558Nv0tNmIPuQnGq8D0; expires=Thu, 25-Nov-2021 23:13:07 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevraDZdxQsQdOyPXPVp0ElMYBkeyS5HHCqvN7L2SsvJS5au79MyZlcq7UUFJMZfThVwggVX3hKJjQgKOlzBlIcG5qlfWiR0GCvLI1ewhEeFULApc2imU7ykwAFWX58ZlZM7TKIsu8T53wsDD11fN2w5v0MTnSV-7EM1SZotHvoB0aQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFJltYj1ZLoDvD4zqxvBeKNJzuGoVwlUKJdF_hYc2Je_KCAfVM-uPbE70Is7dxfLtOHEpz4QrETGw47voDWoEXQdXNH8127VEcXtmL13q5F1d3i7XzpHChYMU-2UXrRkBNZ-ywiNIrjKClhdnxvrRPMoZBZKNqHS8ptzRilLgg-UgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:22 GMT', + 'Tue, 26 Oct 2021 23:13:07 GMT', 'Content-Length', '1753' ]); @@ -95,17 +95,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'x-ms-request-id', '00000000-0000-0000-0000-000000000000', 'x-ms-ests-server', - '2.1.12158.6 - WUS2 ProdSlices', + '2.1.12158.6 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=AjIrO_UEUlFMmQdUrg0OCago7iuqAQAAAOJ1A9kOAAAA; expires=Sat, 20-Nov-2021 14:53:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AuogNIqlGvBGjfN_m71B6PMo7iuqAQAAAIOCCtkOAAAA; expires=Thu, 25-Nov-2021 23:13:07 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 21 Oct 2021 14:53:22 GMT', + 'Tue, 26 Oct 2021 23:13:07 GMT', 'Content-Length', '1327' ]); @@ -121,17 +121,17 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Request-Context', 'appId=', 'MS-CV', - 'NijF0jdQxEu8wVyfQP9Hyw.0', + 'Zl82Aj0ZJEe/10Jyss9iBw.0', 'Strict-Transport-Security', 'max-age=2592000', 'x-ms-client-request-id', '00000000-0000-0000-0000-000000000000', 'X-Processing-Time', - '16ms', + '15ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0435xYQAAAAAH79dBfu87Rb9H0utmSbNhUFJHMDFFREdFMDcyMQBmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', + '0hIt4YQAAAABKgWn0VYM6Sr/YErpFUaBQUFJHMDFFREdFMDYwOABmMDlhNGMxMy0yMWYxLTQ4ZWMtOWNmNy02NjU0NTY4NGI2NDI=', 'Date', - 'Thu, 21 Oct 2021 14:53:23 GMT' + 'Tue, 26 Oct 2021 23:13:07 GMT' ]); diff --git a/sdk/communication/communication-identity/review/communication-identity.api.md b/sdk/communication/communication-identity/review/communication-identity.api.md index a6979a6f0957..7f694e3907c2 100644 --- a/sdk/communication/communication-identity/review/communication-identity.api.md +++ b/sdk/communication/communication-identity/review/communication-identity.api.md @@ -24,8 +24,8 @@ export class CommunicationIdentityClient { createUser(options?: OperationOptions): Promise; createUserAndToken(scopes: TokenScope[], options?: OperationOptions): Promise; deleteUser(user: CommunicationUserIdentifier, options?: OperationOptions): Promise; - exchangeTeamsUserAadToken(teamsUserAadToken: string, options?: OperationOptions): Promise; getToken(user: CommunicationUserIdentifier, scopes: TokenScope[], options?: OperationOptions): Promise; + getTokenForTeamsUser(teamsUserAadToken: string, options?: OperationOptions): Promise; revokeTokens(user: CommunicationUserIdentifier, options?: OperationOptions): Promise; } diff --git a/sdk/communication/communication-identity/samples-dev/exchangeToken.ts b/sdk/communication/communication-identity/samples-dev/getTokenForTeamsUser.ts similarity index 89% rename from sdk/communication/communication-identity/samples-dev/exchangeToken.ts rename to sdk/communication/communication-identity/samples-dev/getTokenForTeamsUser.ts index 5aafb064328d..2663d9b03635 100644 --- a/sdk/communication/communication-identity/samples-dev/exchangeToken.ts +++ b/sdk/communication/communication-identity/samples-dev/getTokenForTeamsUser.ts @@ -27,10 +27,10 @@ const msalPassword = process.env["COMMUNICATION_MSAL_PASSWORD"] || " { const { span, updatedOptions } = createSpan( - "CommunicationIdentity-exchangeTeamsUserAadToken", + "CommunicationIdentity-getTokenForTeamsUser", options ); try { diff --git a/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts b/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts index 867788636ccd..e71cb0f878b3 100644 --- a/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts +++ b/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts @@ -10,7 +10,7 @@ import { assert } from "chai"; import sinon from "sinon"; import { CommunicationIdentityClient } from "../../src"; import { TestCommunicationIdentityClient } from "./utils/testCommunicationIdentityClient"; -import { exchangeTeamsUserAadTokenHttpClient, getTokenHttpClient } from "./utils/mockHttpClients"; +import { getTokenForTeamsUserHttpClient, getTokenHttpClient } from "./utils/mockHttpClients"; describe("CommunicationIdentityClient [Mocked]", () => { const dateHeader = "x-ms-date"; @@ -79,17 +79,17 @@ describe("CommunicationIdentityClient [Mocked]", () => { it("exchanges Teams token for ACS token", async () => { const client = new TestCommunicationIdentityClient(); - const spy = sinon.spy(exchangeTeamsUserAadTokenHttpClient, "sendRequest"); - const response = await client.exchangeTeamsUserAadTokenTest("TeamsToken"); + const spy = sinon.spy(getTokenForTeamsUserHttpClient, "sendRequest"); + const response = await client.getTokenForTeamsUserTest("TeamsToken"); assert.equal(response.token, "token"); assert.equal(response.expiresOn.toDateString(), new Date("2011/11/30").toDateString()); sinon.assert.calledOnce(spy); }); - it("[exchangeTeamsUserAadToken] excludes _response from results", async () => { + it("[getTokenForTeamsUser] excludes _response from results", async () => { const client = new TestCommunicationIdentityClient(); - const response = await client.exchangeTeamsUserAadTokenTest("TeamsToken"); + const response = await client.getTokenForTeamsUserTest("TeamsToken"); assert.isFalse("_response" in response); }); diff --git a/sdk/communication/communication-identity/test/public/node/exchangeTeamsUserAadToken.node.spec.ts b/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts similarity index 90% rename from sdk/communication/communication-identity/test/public/node/exchangeTeamsUserAadToken.node.spec.ts rename to sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts index 1ab928e71137..f6bf17a89146 100644 --- a/sdk/communication/communication-identity/test/public/node/exchangeTeamsUserAadToken.node.spec.ts +++ b/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts @@ -13,9 +13,7 @@ import { import { Context } from "mocha"; matrix([[true, false]], async function(useAad) { - describe(`Exchange Teams User AAD token for ACS token [Playback/Live]${ - useAad ? " [AAD]" : "" - }`, function() { + describe(`Get Token For Teams User [Playback/Live]${useAad ? " [AAD]" : ""}`, function() { let recorder: Recorder; let client: CommunicationIdentityClient; @@ -56,7 +54,7 @@ matrix([[true, false]], async function(useAad) { assert.isNotNull(response); teamsToken = response!.token; } - const { token, expiresOn }: CommunicationAccessToken = await client.exchangeTeamsUserAadToken( + const { token, expiresOn }: CommunicationAccessToken = await client.getTokenForTeamsUser( teamsToken ); assert.isString(token); @@ -69,7 +67,7 @@ matrix([[true, false]], async function(useAad) { if (isPlaybackMode()) { emptyToken = "sanitized"; } - await client.exchangeTeamsUserAadToken(emptyToken); + await client.getTokenForTeamsUser(emptyToken); } catch (e) { assert.equal(e.statusCode, 401); return; @@ -84,7 +82,7 @@ matrix([[true, false]], async function(useAad) { if (isPlaybackMode()) { invalidToken = "sanitized"; } - await client.exchangeTeamsUserAadToken(invalidToken); + await client.getTokenForTeamsUser(invalidToken); } catch (e) { assert.equal(e.statusCode, 401); return; @@ -99,7 +97,7 @@ matrix([[true, false]], async function(useAad) { if (isPlaybackMode()) { expiredToken = "sanitized"; } - await client.exchangeTeamsUserAadToken(expiredToken); + await client.getTokenForTeamsUser(expiredToken); } catch (e) { assert.equal(e.statusCode, 401); return; diff --git a/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts b/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts index c01837e81356..dfbd07c6ffc8 100644 --- a/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts +++ b/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts @@ -53,6 +53,6 @@ export const createUserAndTokenHttpClient: HttpClient = createMockHttpClient< } }); -export const exchangeTeamsUserAadTokenHttpClient: HttpClient = createMockHttpClient< +export const getTokenForTeamsUserHttpClient: HttpClient = createMockHttpClient< CommunicationAccessToken >(200, tokenResponse); diff --git a/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts b/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts index 9d13c6b6dbf5..026e78e51b78 100644 --- a/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts +++ b/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts @@ -15,7 +15,7 @@ import { createUserHttpClient, revokeTokensHttpClient, createUserAndTokenHttpClient, - exchangeTeamsUserAadTokenHttpClient + getTokenForTeamsUserHttpClient } from "./mockHttpClients"; export class TestCommunicationIdentityClient { @@ -65,14 +65,14 @@ export class TestCommunicationIdentityClient { return client.createUserAndToken(scopes, options as any); } - public async exchangeTeamsUserAadTokenTest( + public async getTokenForTeamsUserTest( teamsToken: string, options: OperationOptions = {} ): Promise { // casting is a workaround to enable min-max testing const client = new CommunicationIdentityClient(this.connectionString, { - httpClient: exchangeTeamsUserAadTokenHttpClient + httpClient: getTokenForTeamsUserHttpClient } as CommunicationIdentityClientOptions); - return client.exchangeTeamsUserAadToken(teamsToken, options as any); + return client.getTokenForTeamsUser(teamsToken, options as any); } }