Azure Static Web App Authorization Link Issue - Redirecting to Wrong Identity Link

Petras Butenas 1 Reputation point
2022-02-10T08:21:23.95+00:00

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

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

1 answer

Sort by: Most helpful
  1. Petras Butenas 1 Reputation point
    2022-02-10T11:44:10.203+00:00

    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.


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.