Skip to content

Commit

Permalink
updates after pulling from origin
Browse files Browse the repository at this point in the history
  • Loading branch information
sadasant authored Dec 13, 2021
1 parent ac5797d commit 7263a41
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions sdk/identity/identity/samples-dev/clientSecretCredential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

/**
* @summary Authenticates with a client and a App Registration's secret.
* @summary Authenticates with a client and a app registration's secret.
*/

import { ClientSecretCredential } from "@azure/identity";
Expand All @@ -14,8 +14,8 @@ require("dotenv").config();
export async function main(): Promise<void> {
const credential = new ClientSecretCredential(
process.env.AZURE_TENANT_ID!, // The tenant ID in Azure Active Directory
process.env.AZURE_CLIENT_ID!, // The App Registration client ID in the AAD tenant
process.env.AZURE_CLIENT_SECRET! // The App Registration secret for the registered application
process.env.AZURE_CLIENT_ID!, // The app registration client ID in the AAD tenant
process.env.AZURE_CLIENT_SECRET! // The app registration secret for the registered application
);

const keyVaultUrl = `https://key-vault-name.vault.azure.net`;
Expand Down
10 changes: 5 additions & 5 deletions sdk/identity/identity/samples/v2/javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ urlFragment: identity-javascript

These sample programs show how to use the JavaScript client libraries for Azure Identity in some common scenarios.

| **File Name** | **Description** |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [clientSecretCredential.js][clientsecretcredential] | Authenticates with a client and a App Registration's secret. |
| [defaultAzureCredential.js][defaultazurecredential] | Tries several authentications. The simplest way to use `@azure/identity`. |
| [environmentCredential.js][environmentcredential] | Authenticates with a client and a App Registration's secret sent through environment variables. |
| **File Name** | **Description** |
| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [clientSecretCredential.js][clientsecretcredential] | Authenticates with a client and a app registration's secret. |
| [defaultAzureCredential.js][defaultazurecredential] | Tries several authentication methods using a single credential. The simplest way to use `@azure/identity`. |
| [environmentCredential.js][environmentcredential] | Authenticates as an app registration automatically using environment variables. |

## Prerequisites

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

/**
* @summary Authenticates with a client and a App Registration's secret.
* @summary Authenticates with a client and a app registration's secret.
*/

const { ClientSecretCredential } = require("@azure/identity");
Expand All @@ -14,8 +14,8 @@ require("dotenv").config();
async function main() {
const credential = new ClientSecretCredential(
process.env.AZURE_TENANT_ID, // The tenant ID in Azure Active Directory
process.env.AZURE_CLIENT_ID, // The App Registration client ID in the AAD tenant
process.env.AZURE_CLIENT_SECRET // The App Registration secret for the registered application
process.env.AZURE_CLIENT_ID, // The app registration client ID in the AAD tenant
process.env.AZURE_CLIENT_SECRET // The app registration secret for the registered application
);

const keyVaultUrl = `https://key-vault-name.vault.azure.net`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

/**
* @summary Tries several authentications. The simplest way to use `@azure/identity`.
* @summary Tries several authentication methods using a single credential. The simplest way to use `@azure/identity`.
*/

const { DefaultAzureCredential } = require("@azure/identity");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

/**
* @summary Authenticates with a client and a App Registration's secret sent through environment variables.
* @summary Authenticates as an app registration automatically using environment variables.
*/

const { EnvironmentCredential } = require("@azure/identity");
Expand Down
10 changes: 5 additions & 5 deletions sdk/identity/identity/samples/v2/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ urlFragment: identity-typescript

These sample programs show how to use the TypeScript client libraries for Azure Identity in some common scenarios.

| **File Name** | **Description** |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [clientSecretCredential.ts][clientsecretcredential] | Authenticates with a client and a App Registration's secret. |
| [defaultAzureCredential.ts][defaultazurecredential] | Tries several authentications. The simplest way to use `@azure/identity`. |
| [environmentCredential.ts][environmentcredential] | Authenticates with a client and a App Registration's secret sent through environment variables. |
| **File Name** | **Description** |
| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [clientSecretCredential.ts][clientsecretcredential] | Authenticates with a client and a app registration's secret. |
| [defaultAzureCredential.ts][defaultazurecredential] | Tries several authentication methods using a single credential. The simplest way to use `@azure/identity`. |
| [environmentCredential.ts][environmentcredential] | Authenticates as an app registration automatically using environment variables. |

## Prerequisites

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

/**
* @summary Authenticates with a client and a App Registration's secret.
* @summary Authenticates with a client and a app registration's secret.
*/

import { ClientSecretCredential } from "@azure/identity";
Expand All @@ -14,8 +14,8 @@ require("dotenv").config();
export async function main(): Promise<void> {
const credential = new ClientSecretCredential(
process.env.AZURE_TENANT_ID!, // The tenant ID in Azure Active Directory
process.env.AZURE_CLIENT_ID!, // The App Registration client ID in the AAD tenant
process.env.AZURE_CLIENT_SECRET! // The App Registration secret for the registered application
process.env.AZURE_CLIENT_ID!, // The app registration client ID in the AAD tenant
process.env.AZURE_CLIENT_SECRET! // The app registration secret for the registered application
);

const keyVaultUrl = `https://key-vault-name.vault.azure.net`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

/**
* @summary Tries several authentications. The simplest way to use `@azure/identity`.
* @summary Tries several authentication methods using a single credential. The simplest way to use `@azure/identity`.
*/

import { DefaultAzureCredential } from "@azure/identity";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

/**
* @summary Authenticates with a client and a App Registration's secret sent through environment variables.
* @summary Authenticates as an app registration automatically using environment variables.
*/

import { EnvironmentCredential } from "@azure/identity";
Expand Down

0 comments on commit 7263a41

Please sign in to comment.