File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
sdk/communication/azure-communication-identity/samples Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414USAGE:
1515 python identity_samples.py
1616 Set the environment variables with your own values before running the sample:
17- 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your Communication Services resource
17+ 1) COMMUNICATION_AUTH_SAMPLES_CONNECTION_STRING - the connection string in your Communication Services resource
1818 2) AZURE_CLIENT_ID - the client ID of your active directory application
1919 3) AZURE_CLIENT_SECRET - the secret of your active directory application
2020 4) AZURE_TENANT_ID - the tenant ID of your active directory application
3232
3333class CommunicationIdentityClientSamples (object ):
3434 def __init__ (self ):
35- self .connection_string = os .getenv ("COMMUNICATION_SAMPLES_CONNECTION_STRING " , "" )
35+ self .connection_string = os .getenv ("COMMUNICATION_AUTH_SAMPLES_CONNECTION_STRING " , "" )
3636 self .client_id = os .getenv ("AZURE_CLIENT_ID" )
3737 self .client_secret = os .getenv ("AZURE_CLIENT_SECRET" )
3838 self .tenant_id = os .getenv ("AZURE_TENANT_ID" )
Original file line number Diff line number Diff line change 1515 python identity_samples_async.py
1616 Set the environment variables with your own values before running the sample:
1717 1) AZURE_COMMUNICATION_SERVICE_ENDPOINT - Communication Service endpoint url
18- 2) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your Communication Services resource
18+ 2) COMMUNICATION_AUTH_SAMPLES_CONNECTION_STRING - the connection string in your Communication Services resource
1919 3) AZURE_CLIENT_ID - the client ID of your active directory application
2020 4) AZURE_CLIENT_SECRET - the secret of your active directory application
2121 5) AZURE_TENANT_ID - the tenant ID of your active directory application
3434
3535class CommunicationIdentityClientSamples (object ):
3636 def __init__ (self ):
37- self .connection_string = os .getenv ("COMMUNICATION_SAMPLES_CONNECTION_STRING " , "" )
37+ self .connection_string = os .getenv ("COMMUNICATION_AUTH_SAMPLES_CONNECTION_STRING " , "" )
3838 self .endpoint = os .getenv ("AZURE_COMMUNICATION_SERVICE_ENDPOINT" )
3939 self .client_id = os .getenv ("AZURE_CLIENT_ID" )
4040 self .client_secret = os .getenv ("AZURE_CLIENT_SECRET" )
You can’t perform that action at this time.
0 commit comments