Cant enable custom authentication for azure static web app due to missing repository

Melissa Lin 0 Reputation points
2025-04-08T13:10:50.59+00:00

I am trying to enable custom authentication for my static web app for my development resource group. We currently have basic aad authentication but want to add google etc. When trying to follow the steps and enable custom auth I am unable to toggle it on due to repository linked to this app does not exist.

Screenshot 2025-04-08 at 12.31.57.png

The app is deployed from github using deployment tokens. I have tried adding to the staticwebapp.config.json and app variables from the step like:

  "auth": {
    "identityProviders": {
      "google": {
        "registration": {
          "clientIdSettingName": "GOOGLE_CLIENT_ID",
          "clientSecretSettingName": "GOOGLE_CLIENT_SECRET_APP_SETTING_NAME"
        }
      }
    }
  }

but currently just getting a white screen after it redirects to https://identity.6.azurestaticapps.net/.auth/login/google?post_login_redirect_uri=/.auth/login/done

Wondering if there is also a way to turn off the auth emulator for npx swa start to better test these things locally.

Any help on enabling this is appreciated, thanks!

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,128 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.