-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Communication] - SMS - Managed Identity Support for SMS Client #17867
Changes from 1 commit
ce5cc11
a47cb81
5948bd4
cc1de11
1d8a6d3
5252eb8
e7e5e83
49334c9
2688b04
ef05964
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,14 @@ string connectionString = "YOUR_CONNECTION_STRING"; // Find your Communication S | |
SmsClient client = new SmsClient(connectionString); | ||
``` | ||
|
||
Alternatively, SMS clients can also be authenticated using a valid token. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we tell users to have their client id, tenant and client secret as env variables for DefaultAzureCredential to work? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, thanks for the suggestion Jorge! |
||
|
||
```C# Snippet:Azure_Communication_Sms_Tests_Samples_CreateSmsClientWithToken | ||
string endpoint = "<endpoint_url>"; | ||
TokenCredential tokenCredential = new DefaultAzureCredential(); | ||
SmsClient client = new SmsClient(new Uri(endpoint), tokenCredential); | ||
``` | ||
|
||
## Examples | ||
### Send a SMS Message | ||
To send a SMS message, call the `Send` or `SendAsync` function from the `SmsClient`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you meant sms here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch!! Thank you, I've fixed this