-
Notifications
You must be signed in to change notification settings - Fork 301
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
Signup Error: AADB2C90068: The provided application with ID 'xxx' is not valid against this service. #272
Comments
Have you tried using a browser where no Microsoft Account is currently logged in? I encounter this issue in various applications as I have to use multiple accounts from different companies. One time, I also had to remove the account from Windows added company accounts in system settings... otherwise a app did always choose the wrong Microsoft Account. |
I tried it with an incognito window without success |
I've hit this exact same issue today - fresh install of everything. the id mentioned as part of the error does not match the id of the app registration created as part of the deploy process in the Azure portal (or indeed any id of any resource that exists as part of the SDK) Some research seems to suggest the app registration is at fault, there are some replies here that may be helpful? I also noticed, in the latest commit a bunch of values have been changed from 'azureAdInstance' to 'azureAdB2CInstanceURL'. Could it now be looking for a B2C app registration, but that does not exist because the bicep code hasn't been updated to create the app registration using B2C instead of regular AD? |
@lookitskris I agree that it might be that the last commit from PR #270 that introduces this regression. I’m away at the moment and won’t be back before later in August. The last commit only changed four lines of code across four files, so what I would maybe do would be to try and roll back those four changes manually by editing the files in hand and then try and re-run the installation from a blank slate. Thanks. |
@1iveowl Think I have found the issue (or at least part of it) It appears as though the app registrations the template creates are for the older Azure AD and not B2C? Or perhaps it is B2C but it's missing something? Here are the supported account type options for the admin-api registration the template generates for example Its missing the newer, third option which reads "Accounts in any organisational directory or any identity provider. Choose this option to authenticate with Azure AD B2C". This uses accessTokenAcceptedVersion which should be set to 2 and signInAudience which should be set to AzureADandPersonalMicrosoftAccount. You cant manually modify the registrations created by the template by inserting these values into the manifest unfortunately I don't know the guts of the SDK well enough to try and update this, but if you have any pointers on where to start I'll have a go |
I can confirm, had the same issue after clean and new deploy, but after I made these changes within the manifests directly within the Azure portal both the login and signup flows started to work. |
@blinka are you able to say here what the specific changes you made on which registration? when I tried to do it it wouldn't let me save the changes, so wouldn't mind comparing with you to check I'm doing the right thing |
These apps might have different names if you changed the prefix etc in config before deploy. These app registrations: Steps to Modify the Application Manifest 1 Navigate to the Azure Portal at https://portal.azure.com. I modified these properties to these values "signInAudience": "AzureADandPersonalMicrosoftAccount", Under API section Then the "save" command was enabled for me. Saved and then directly after that I was able to both signup and signin, view admin section of my account and also view the "route" page on the web app. |
@blinka lovely, thanks for that - working for me now too. The mistake I made was trying to modify the app registration manifests in "Entra ID" and not "Azure AD B2C", just in case that catches anybody else out |
It's really annoying. Please advise on possible solutions. |
Describe the bug
After successfully deploy the application I'm not abel to signup or login.
I checked the app registrations and they are created in correclty in in the azure b2c tenant
To Reproduce
Steps to reproduce the behavior:
0. Fork Repo
Expected behavior
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: