Skip to content
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

@azure/cosmos with DefaultAzureCredential - is this correct? #24368

Open
diberry opened this issue Jan 5, 2023 · 0 comments
Open

@azure/cosmos with DefaultAzureCredential - is this correct? #24368

diberry opened this issue Jan 5, 2023 · 0 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Cosmos Docs

Comments

@diberry
Copy link
Contributor

diberry commented Jan 5, 2023

The docs say 'AAD token from @azure/identity'. Is that the same as the credential in the code below? The wording of token, instead of credential, makes me think I use the credential to get a token.

const credential = new DefaultAzureCredential({
      managedIdentityClientId = clientIDdatabases
  });

// Create an Azure Cosmos DB client
CosmosClient client = new CosmosClient({
    endpoint: cosmosDbEndPoint,
    aadCredentials: credential
})
@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jan 5, 2023
@xirzec xirzec added Client This issue points to a problem in the data-plane of the library. Cosmos Docs labels Jan 5, 2023
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Cosmos Docs
Projects
None yet
Development

No branches or pull requests

3 participants