Azure / Azure/azure-libraries-for-java

Documentation on wiki: Authenticate using a service principal

Abierto
#476 1 comentario 0 reacciones 1 asignado Reclamado por @jianghaolu Ver en GitHub
Authentication customer-reported Question
Lenguaje dominante
Java
Estrellas
97
Forks
102
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.