Azure-Samples / Azure-Samples/ms-identity-ciam-javascript-tutorial

Keys for TenantId and ClientId are mixed up

Abierto
#138 1 comentario 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PowerShell
Estrellas
75
Forks
65
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

The keys for TenantId and ClientId are swapped in appsettings.json for the ToDoListAPI. See also text in section "Configure the service app (ciam-msal-dotnet-api) in https://learn.microsoft.com/en-us/samples/azure-samples/ms-identity-ciam-javascript-tutorial/ms-identity-ciam-javascript-tutorial-2-call-api-angular/#setup-the-sample.

Application worked as expected for me after swapping the keys.

from appsettings.json
"AzureAd": {
"Instance": "https://Enter_the_Tenant_Subdomain_Here.ciamlogin.com/",
"TenantId": "Enter_the_Application_Id_Here", //this needs the tenant id and not the application/clientId and vice versa
"ClientId": "Enter_the_Tenant_Id_Here",
"Scopes": {
"Read": ["ToDoList.Read", "ToDoList.ReadWrite"],
"Write": ["ToDoList.ReadWrite"]
},
......
}

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.