Microsoft-identity-web: [Bug] in msidentity-app-sync.exe/Microsoft.Identity.Web.ProjectTemplates

Created on 17 Apr 2021  路  6Comments  路  Source: AzureAD/microsoft-identity-web

Which version of Microsoft Identity Web are you using?
msidentity-app-sync.exe 1.0.0
Microsoft.Identity.Web.ProjectTemplates 1.8.2 (also tried 1.9.1)

Where is the issue?
msidentity-app-sync.exe / webapp2 template

Is this a new or an existing app?
new

Repro

dotnet new webapi2 --auth SingleOrg
msidentity-app-sync.exe

Expected behavior
App scaffolded and configured

Actual behavior
Error encountered with sign-in. See error message for details:
AADSTS90002: Tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' not found. This may happen if there are no active subscriptions for the tenant. Check to make sure you have the correct tenant ID. Check with your subscription administrator.

Possible solution
Remove Domain from appsettings.json before running msidentity-app-sync.exe

"Domain": "yourDomain", 
P1 Project Templates bug fixed

Most helpful comment

@jmprieur Glad I could help in some way, I think msidentity-app-sync and the templates are a very important and useful feature 馃憤

All 6 comments

@tim-biasoft:

  • you want to make sure you're signed-in in Visual Studio or Azure CLI with you home tenant account. You might need to re-enter your credentials in Visual Studio?
  • otherwise, if you want to use a specific tenant, use --tenant-id

@jmprieur I was signed in with Visual Studio and Azure CLI. It worked straight away after I removed Domain from appsettings.json which kind of rules out any authentication issue. Running these two commands back to back:

dotnet new webapi2 --auth SingleOrg
msidentity-app-sync.exe

Should work, right?

@tim-biasoft
thanks very much for the heads-up. I've proposed a PR for this scenario.

@jmprieur Glad I could help in some way, I think msidentity-app-sync and the templates are a very important and useful feature 馃憤

Still need testing (automatically closed by GitHub)

Included in 1.9.2 release

Was this page helpful?
0 / 5 - 0 ratings