Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to generate Authenticator QR Code with Blazor .NET 8 in razor component

$
0
0

When using the new Identity razor components from .NET 8 you still get a link to this article: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity-enable-qrcodes?view=aspnetcore-8.0#adding-qr-codes-to-the-2fa-configuration-page

But the article is for _cshtml files, so it does not work for me, as I use the new .razor files and the load event is never triggered. I already tried executing the code in the OnInitializedAsync() method, but there you cannot execute JavaScript code. I also tried using the OnAfterRenderAsync method, but it also never gets called. So, how can I create an Authenticator QR Code in a new Blazor application?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>