Getting AccessToken to attach http request in a delegatinghandler to use in IHttpClientFactory In blazor serverside interactive
Im trying to write a blazor app in dotnet 8 that only uses server side interactive rendering. I want to authenticate against Azure tenant. I have the login working correctly, Im just having a hard time figuring out how to attach the correct authorization token to an http client that is making requests to a different dotnet api that is also authenticated against tenant. It understand that the scope that delegating handlers use is different than that of the signalR circuit that is instantiaded when a client accesses the site. I found this article https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/dependency-injection?view=aspnetcore-9.0#access-server-side-blazor-services-from-a-different-di-scope that describes how to get the authentication state from the circuit. Im just having a hard time figuring out how to ge the access token from this.
Navigating to a dynamic route based on ID from a table in Blazor
I have a table in a Blazor page that displays several records. Each row contains an ID, and I want to allow users to click on the ID, which should navigate to a new page with a dynamic route based on that ID.
My blazor page is executed twice when I need to execute just one time
I dont know why but the page /Generador/VerificarEmail/EncriptedEmailAndName is executed twice. ChatGPT suggested me to put all the code as async, so I did that but the page is still executing twice.
.Net/Blazor Server – Images delivered by API not cached in browser
I am working on a Blazor Server App that also includes a minimal API that is used for several tasks including serving request for image files that are stored in a database instead of the file system.
Does blazor have any unique ID associated with a window session
I’m working on a Blazor server-side app. In some cases, when a user updates a resource, the application will show a toast asking if the user wants to refresh their view (or not) since if you’re in the middle of analyzing something you may not want the refresh to happen just yet.
Blazor server circuits management
I’m trying to improve one functionality I have done some months ago to use it on another part of the project. (Blazor server)
Blazor: Create root path with parameter
New blazor dev here ✌️