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 14
14
USAGE:
15
15
python identity_samples.py
16
16
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
18
18
2) AZURE_CLIENT_ID - the client ID of your active directory application
19
19
3) AZURE_CLIENT_SECRET - the secret of your active directory application
20
20
4) AZURE_TENANT_ID - the tenant ID of your active directory application
32
32
33
33
class CommunicationIdentityClientSamples (object ):
34
34
def __init__ (self ):
35
- self .connection_string = os .getenv ("COMMUNICATION_SAMPLES_CONNECTION_STRING " , "" )
35
+ self .connection_string = os .getenv ("COMMUNICATION_AUTH_SAMPLES_CONNECTION_STRING " , "" )
36
36
self .client_id = os .getenv ("AZURE_CLIENT_ID" )
37
37
self .client_secret = os .getenv ("AZURE_CLIENT_SECRET" )
38
38
self .tenant_id = os .getenv ("AZURE_TENANT_ID" )
Original file line number Diff line number Diff line change 15
15
python identity_samples_async.py
16
16
Set the environment variables with your own values before running the sample:
17
17
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
19
19
3) AZURE_CLIENT_ID - the client ID of your active directory application
20
20
4) AZURE_CLIENT_SECRET - the secret of your active directory application
21
21
5) AZURE_TENANT_ID - the tenant ID of your active directory application
34
34
35
35
class CommunicationIdentityClientSamples (object ):
36
36
def __init__ (self ):
37
- self .connection_string = os .getenv ("COMMUNICATION_SAMPLES_CONNECTION_STRING " , "" )
37
+ self .connection_string = os .getenv ("COMMUNICATION_AUTH_SAMPLES_CONNECTION_STRING " , "" )
38
38
self .endpoint = os .getenv ("AZURE_COMMUNICATION_SERVICE_ENDPOINT" )
39
39
self .client_id = os .getenv ("AZURE_CLIENT_ID" )
40
40
self .client_secret = os .getenv ("AZURE_CLIENT_SECRET" )
You can’t perform that action at this time.
0 commit comments