Figured it out - my antivirus software had identity.1.azurestaticapps.net URL for some reason blacklisted (whereas identity.azurestaticapps.net was not). Once I got it in the exception list - it works.
Azure Static Web App Authorization Link Issue - Redirecting to Wrong Identity Link
I use Azure Static Web App connected with Azure Devops. My website works fine but cannot get Azure Static Web App authorization to work and it may be a bug.
The static web app's URL is ...6bde6303 .1. azurestaticapps.net instead of ...6bde6303.azurestaticapps.net which I found to be in all online demos.
Logn window is supposed to be accessed via ...6bde6303.1.azurestaticapps.net/.auth/login/aad which redirects to identity .1. azurestaticapps.net/.redirect/aad?hostName=... - and that turns me to a 'cannot be reached' tipe of site.
I noticed that identity .1. azurestaticapps.net is not the correct link and tried changing url to identity.azurestaticapps.net instead - it then redirected me to the sign in page and worked.!!
However, once signed in, it redirects back to identity. 1 .azurestaticapps.net and I cannot access. I think this is an issue with the subdomain and I think it is controlled in system files. I'm stuck, cannot find an answer and was hoping maybe someone figured this out?..
P.s. I tried creating 7 different Azure Statice Web apps with different regions, hosting plans and also connected to Github instead of Azure Devops. Also tried a clean version of Static Web app - always the same authorization issue. And always the generated URL is with the .1. subdomain. Adding custom URL does not help because it is still redirected to identity.1.azurestaticapps