Azure / Azure/azure-libraries-for-java

Documentation on wiki: Authenticate using a service principal

Ouverte
#476 1 commentaire 0 réactions 1 personne assignée Réclamée par @jianghaolu Voir sur GitHub
Authentication customer-reported Question
Langage dominant
Java
Étoiles
97
Forks
102
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I noticed that the documentation on the wiki may be incorrect. Please tell me if I am wrong.
```java
ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(
"",
"contoso.com",
"",
AzureEnvironment.Azure);
```
The domain name variable, "constoso.com", is really the tenant Id. I tried authenticating several times with the domain name from the Service Principal token. I could never authenticate, and it specified that it was looking for a GUID. Please tell me if I am wrong. As soon as I provided the tenantId, then the code started working correctly. It should be noted that I was trying to authenticate using KeyVaultManager in my deployment pipeline.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.