2020-06-24 - Stream 107 Learning how to use a Blazor WebAssembly with Azure AD Token

Summary

In this live stream session, Frank is working on improving the security for the Tiny Blazor Admin project. In other words, he is changing the code so the Blazor web assembly (wasm - client side) website will be calling some Azure Function using Azure Active Directory (AAD).

📺 - Twitch archive - stream no.107

Replay

Timestamps

00:00:00 Intro 
00:00:10 Bonjour, Hi!
00:03:44 Plan of the stream
00:10:54 Making sure the App was created the correct way.
00:18:42 Securing the Azure Functions with Azure AD
01:24:57 Configuring Blazor WebAssembly to use the Azure AD Token
02:20:42 Ready to call the function... but no time!
02:22:00 Wrapping up!

Project

All the code for this project is available on GitHub: Azure Url Shortener - https://github.com/FBoucher/TinyBlazorAdmin

Goals

  • Read a secret or call a function using AAD

ToDos

  • unfinish todos from previous stream

New Followers

New Subscribers

Raids

  • @ has raided you with a party of

Cheers

Drop Parachute Highest Score

  • @: 70.69

  • copperbeardy landed for 48.08!
  • mreyeros landed for 56.21!
  • codewithsean landed for 92.77!
  • fredda_the_cat landed for 96.95!

Drop Parachute Highest Score

  • copperbeardy landed for 9.24!

Streams Notes/ Snippets/ Shared urls

  • dotnet add package Microsoft.AspNetCore.Authorization
  • dotnet add package Microsoft.Extensions.Http
  • dotnet add package System.Net.Http.Json
  • dotnet add package Microsoft.AspNetCore.Blazor.HttpClient –version 3.2.0-preview3.20168.3

References

  • https://blog.jeremylikness.com/blog/azure-ad-secured-serverless-cosmosdb-from-blazor-webassembly/