forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Communication] - Identity - Auth with Token Credential (Azure#12906)
* [communicationIdentityClient] adding new constructor using token credential * [communicationIdentityClient] new implementation to take pass in token credential to constructor * Revert changes to this file * [communicationIdentityClient] adding linted files * [communicationIdentityClient] remove unused import * [communicationIdentityClient] fixing the comments as per PR feedback * [communicationIdentityClient] import for bearerTokenAuthenticationPolicy * [Token] adding in live tests for constructor with token credential * [karma] added the environment vars to karma for browser * [recordedClient] adding in a mock token credential for playback mode * [Recordings] removing the port from endpoint url * [recordedClient] using ClientSecretCredential instead of DefaultAzureCredential * [communicationIdentityClientWithToken] for browser we stick to the old way of authentication for the time being * [createRecordedCommunicationIdentityClient] formatting fixes * [README] update the read me samples and the changelog * [communicationIdentityClientWithToken] updating test to skip if the token is not created properly * [communicationAuthPolicy] Created new auth policy to so client has cleaner implementation * [recordedClient] remove the sinon lib * Update sdk/communication/communication-administration/src/communicationIdentity/communicationIdentityClient.ts Co-authored-by: Dominik <domessin@microsoft.com>
- Loading branch information
Showing
18 changed files
with
408 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...htoken_playbacklive/recording_successfully_issues_a_token_for_a_user_multiple_scopes.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...withtoken_playbacklive/recording_successfully_issues_a_token_for_a_user_single_scope.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
87 changes: 87 additions & 0 deletions
87
...ithtoken_playbacklive/recording_successfully_issues_a_token_for_a_user_multiple_scopes.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
87 changes: 87 additions & 0 deletions
87
...ntwithtoken_playbacklive/recording_successfully_issues_a_token_for_a_user_single_scope.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.