Azure / azure-saas

The Azure SaaS Development Kit (ASDK) provides a reference architecture, deployable reference implementation and tools to help developers, startups, ISVs and Enterprises deliver their applications as a SaaS service. A platform for platform creators.
https://aka.ms/azuresaasdevkit
326 stars 239 forks source link

Signup Error: AADB2C90068: The provided application with ID 'xxx' is not valid against this service. #272

Open jhofer opened 1 month ago

jhofer commented 1 month ago

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:

  1. Fork Repo
  2. Fresh Deployment of all Components
    
    echo "Start of setup.sh"
    # get script directory
    SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

create array of folder names

echo read -p "run Saas.IdentityProvider" -n 1 -r CONTINUE_SCRIPT if [[ $CONTINUE_SCRIPT =~ ^[Yy]$ ]]; then targetDir="${SCRIPT_DIR}/src/Saas.Identity/Saas.IdentityProvider/deployment" echo "dir ${targetDir}" cd $targetDir

run setup script

./setup.sh
./run.sh

fi

echo read -p "run Saas.Permissions" -n 1 -r CONTINUE_SCRIPT if [[ $CONTINUE_SCRIPT =~ ^[Yy]$ ]]; then targetDir="${SCRIPT_DIR}/src/Saas.Identity/Saas.Permissions/deployment" echo "dir ${targetDir}" cd $targetDir

run setup script

./setup.sh
./run.sh

fi

echo read -p "run Saas.Admin" -n 1 -r CONTINUE_SCRIPT if [[ $CONTINUE_SCRIPT =~ ^[Yy]$ ]]; then targetDir="${SCRIPT_DIR}/src/Saas.Admin/deployment" echo "dir ${targetDir}" cd $targetDir

run setup script

./setup.sh
./run.sh

fi

echo read -p "run Saas.SignupAdministration" -n 1 -r CONTINUE_SCRIPT if [[ $CONTINUE_SCRIPT =~ ^[Yy]$ ]]; then targetDir="${SCRIPT_DIR}/src/Saas.SignupAdministration/deployment" echo "dir ${targetDir}" cd $targetDir

run setup script

./setup.sh
./run.sh

fi

echo read -p "run Saas.Application" -n 1 -r CONTINUE_SCRIPT if [[ $CONTINUE_SCRIPT =~ ^[Yy]$ ]]; then targetDir="${SCRIPT_DIR}/src/Saas.Application/deployment" echo "dir ${targetDir}" cd $targetDir

run setup script

./setup.sh
./run.sh

fi


4. Commit and Deploy gitworkflow changes 
5. Run all Gitworkflows
3. Open signupadmin or saas-app webapp
4. Click on Sign Up / Sign In ==> Error 

**Expected behavior**
- User should be abel to Sign Up or Login 

**Screenshots**
<img width="362" alt="image" src="https://github.com/Azure/azure-saas/assets/1119138/d8437679-3214-4c5b-89b2-c791781a6db0">

**Desktop (please complete the following information):**
 - OS: Windows . 
 - Browser Edge
stuckydev commented 1 month ago

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.

jhofer commented 1 month ago

I tried it with an incognito window without success