Blazor WASM Authentication (MSAL) and profile editing

Roberto 1 Reputation point

I setup a profile editing user flow in Azure AD B2C active directory. I successfully setup a Blazor WASM application to redirect the user to the Azure endpoint.

The user can successfully change information in the Azure page, but I cannot setup the Blazor WASM to update the user information once the browser is redirected on the application.

I tried to set the redirect uri to authentication/login-callback but without success. As I see from various properties, there is no action to manage a redirect from a remote profile page.

I set up a custom page my-profile-callback, but I don't know how to refresh the user information cached on the client.

There is a way to refresh account information from MSAL without logout/login process?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,661 questions
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
970 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce ( 35,716 Reputation points

    the blazor wasm app only has the info that is in the oauth ticket. the ticket will not be updated until it expires.

    the login-callback is expected to be passed a token on the url as a query parameter. the redirect url should force a new login.

    0 comments No comments