We're migrating a Blazor WebAssembly application from Azure AD B2C to Entra External ID and encountering authentication issues. Users can't sign in or sign up, receiving the error:
ServerError: invalid_request: AADSTS500208: The domain is not a valid login domain for the account type.
Microsoft.Authentication.WebAssembly.Msal
package{
"Authority": "https://login.microsoftonline.com/new-tenant-id",
"ClientId": "new-client-id"
}
Our goal is to allow users from any company to sign up using their work email addresses, with users grouped by organization/domain for data filtering purposes.
Try:
Changing Authority
to https://new-tenant-name.ciamlogin.com/new-tenant-id
If you're running this with localhost, make sure your Redirect URI contains the port number i.e. <https://localhost:8000/authentication/login-callback >instead of https://localhost/authentication/login-callback
Hope that helps!