HOWTO: Secure Both API and Client Blazor With Azure AD

Matthew Holton 331 Reputation points
2021-07-09T14:22:14.46+00:00

I am looking for a guide that provides the formula for securing both the wasm and api via Azure AD. I see mentions of Azure AD B2C, is this a requirement or just a bolt on layer?

I have been able to secure the wasm portion of the solution, but all attempts to pass that token onto the server for api calls fail. Either I am not passing the token properly or the token is not accepted - in either case, the result is 401 Unauthorized.

Using:
VS2019
.Net 5
Standard project template (App.client, App.server, App.shared)

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,395 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,559 questions
0 comments No comments
{count} votes

Accepted answer
  1. Matthew Holton 331 Reputation points
    2021-07-09T19:12:45.94+00:00

    I found the answer to my question. These links got me where I needed to be: Microsoft Walkthrough and SyncFusion Walkthrough


0 additional answers

Sort by: Most helpful