According to instruction described in “Secure an ASP.NET Core Blazor WebAssembly standalone app with Azure Active Directory” https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-azure-active-directory?view=aspnetcore-3.1 I have created the simplest blazor webassembly app. At https://portal.azure.com I registered new app in AAD and based on generated GUIDs generated local app with this command:
dotnet new blazorwasm -au SingleOrg --client-id "{CLIENT ID}" --tenant-id "{TENANT ID}" -o {APP NAME}
Everything worked fine if I launched app locally. If I copied published app to storage account $web and try to log in I have received:
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '…'.
During app registration I have defined app as “Web” and put Redirect URL: https://localhost:5001/authentication/login-callback I have tried different combinations of URL changing hostname, deleting port and changing path. I don’t know how to successfully configure app in AD.
Static website
-> copy thePrimary endpoint
, then change the redirect url with<Primary endpoint>/authentication/login-callback
, something likehttps://xxxx.z13.web.core.windows.net/authentication/login-callback
, will it work? – Joy Wang-MSFT