How do I make a "friendly name" of my Blazor WASM Static Web App?

mkb13 11 Reputation points
2022-09-05T12:48:27.053+00:00

I am using the built-in authentication support using AAD for my Blazor WASM Static Web App. If I send a user an invitation, the user receives a message when logging in that "Azure Static Web App" or "Azure Identity Services" is asking for their consent. I want my app name to show up instead. How do I do this? Note that I don't have my app registered under App registrations in Azure Portal, yet I'm still able to send invitations, which makes me think the Static Web Apps functionality somehow removes the need for app registration (it may be the answer but it is not clear how to set it up for a Blazor WASM Static Web App).

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,351 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
738 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,108 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 53,506 Reputation points
    2022-09-06T22:11:43.983+00:00

    you are using the builtin identity providers. identity providers must register their applications at login provider. the webapps default ad provider, as registered it own app (identity.azurestaticapps.net) in azure ad, and others.

    if you want a custom url you need to use a custom provider rather than the default, and register your site at the actual oauth authentication site. assuming you want to use azure ad:

    1) create azure ad account (tenant id)
    2) register you static web app at this account (client id).
    3) using the azure ad provider as the custom provider, configure the provider to use your azure ad application registration.

    https://learn.microsoft.com/en-us/azure/static-web-apps/authentication-custom?tabs=aad