You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// DefaultAzureCredential supports different authentication mechanisms and determines the appropriate credential type based of the environment it is executing in.
72
+
// It attempts to use multiple credential types in an order until it finds a working credential.
// DefaultAzureCredential supports different authentication mechanisms and determines the appropriate credential type based of the environment it is executing in.
35
+
// It attempts to use multiple credential types in an order until it finds a working credential.
/// // By using the ClientSecretCredential, a specified application Id can login using a
47
-
/// // client secret.
48
-
/// var tokenCredential = new ClientSecretCredential(
49
-
/// tenantId,
50
-
/// clientId,
51
-
/// clientSecret,
52
-
/// new TokenCredentialOptions { AuthorityHost = KnownAuthorityHosts.AzureCloud });
46
+
/// // DefaultAzureCredential supports different authentication mechanisms and determines the appropriate credential type based of the environment it is executing in.
47
+
/// // It attempts to use multiple credential types in an order until it finds a working credential.
48
+
/// var tokenCredential = new DefaultAzureCredential();
53
49
///
54
50
/// var client = new DigitalTwinsClient(
55
51
/// new Uri(adtEndpoint),
@@ -78,28 +74,6 @@ public DigitalTwinsClient(Uri endpoint, TokenCredential credential)
78
74
/// For more samples, see <see href="https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins/Azure.DigitalTwins.Core/samples">our repo samples</see>.
0 commit comments