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

[Bug] in msidentity-app-sync.exe/Microsoft.Identity.Web.ProjectTemplates #1148

Closed
tim-biasoft opened this issue Apr 17, 2021 · 6 comments · Fixed by #1149
Closed

[Bug] in msidentity-app-sync.exe/Microsoft.Identity.Web.ProjectTemplates #1148

tim-biasoft opened this issue Apr 17, 2021 · 6 comments · Fixed by #1149
Assignees
Labels
Milestone

Comments

@tim-biasoft
Copy link

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", 
@tim-biasoft tim-biasoft changed the title [Bug] [Bug] in msidentity-app-sync.exe/Microsoft.Identity.Web.ProjectTemplates Apr 17, 2021
@jmprieur
Copy link
Collaborator

@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

@tim-biasoft
Copy link
Author

@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?

@jmprieur
Copy link
Collaborator

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

@tim-biasoft
Copy link
Author

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

@jmprieur
Copy link
Collaborator

Still need testing (automatically closed by GitHub)

@jmprieur jmprieur reopened this Apr 22, 2021
@jennyf19 jennyf19 modified the milestones: 1.10.0, 1.9.2 May 1, 2021
@jennyf19
Copy link
Collaborator

jennyf19 commented May 4, 2021

Included in 1.9.2 release

@jennyf19 jennyf19 closed this as completed May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment