You have the first good write-up I've found around handling this elegantly. I'm doing essentially the same thing, but I'm using an NSWAG client generated from the Web API from the Blazor UI instead of going directly to the API. Have you ever tried this? I can't get the "on behalf of" auth to work between the UI and API client.
@kingua - I haven't used NSwag before. Thanks for pointing that out to me! I've been away from both Blazor and AAD B2C for a while so I can't be any help to you right now.
You have the first good write-up I've found around handling this elegantly. I'm doing essentially the same thing, but I'm using an NSWAG client generated from the Web API from the Blazor UI instead of going directly to the API. Have you ever tried this? I can't get the "on behalf of" auth to work between the UI and API client.