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.
My appsettings.json doesn't have any ClientId in it. It only has a few variables that are custom settings for my app.
Here's the consent screen:
I can't see the image you pasted. I do have three test apps registered in app registrations, so maybe somehow it's using one of those, but it's not using any of their names and there is no ClientId.
I also did a case-insensitive search through my project for "clientid" and did not find it anywhere.
I also checked the three test apps I have registered and I don't think any of them could be it, because they all have unrelated redirect URIs, plus two of the three have "Certificates & Secrets" listed as expired.
Basically I want the name and URL of my app to show up in the consent screen instead of identity.azurestaticapps.net and "Azure Static Web Apps".
Sign in to comment