Cant enable custom authentication for azure static web app due to missing repository
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.
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!