20 questions
0
votes
0
answers
53
views
Blazor Hosted App is not completing authentication process
I have a Blazor Hosted application that uses custom Google authentication to sign in users in an organization into the app. When I debug locally on my Windows machine, I can easily sign in using ...
0
votes
1
answer
291
views
Blazor WASM YAML Build fails
I try to establish a Blazor WASM Build on a YAML Pipeline on DevOps. At the Moment I use the Boiler Plate Project for Blazor WASM and a very simple build Task:
- task: Bash@3
displayName: Build CMS
...
1
vote
0
answers
724
views
Blazor WebAssembly - Exception in AuthenticationService.js
I am implementing OICD authentication into a blazor hosted application using OpenIddict and the default identity UI. Upon starting my application I receive the following error in AuthenticationService....
0
votes
0
answers
2k
views
Unexpected character encountered while parsing value: <. Path '', line 0, position 0. Newtonsoft.Json.JsonReaderException
I am working of another older project of mine as reference and within this blazor compononent I get this error ->
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]...
0
votes
1
answer
639
views
Blazor App Disconnects with Server after publishing using AZURE APP SERVICE
I am new bee to blazor, my blazor Web assembly app gets disconnected with the server after publishing it using azure app service it works fine for some time in development mode it says "An ...
2
votes
1
answer
3k
views
How to send custom claims from Duende IdentityServer to Blazor WASM Hosted app
I'm creating a Hosted Blazor WASM app that is connecting to a Duende IdentityServer app for authentication and authorization. The Blazor Server part is functioning as BFF.
The user is assigned a role ...
2
votes
1
answer
886
views
Blazor controllers in separate service
Our current Blazor Server project references the Client project, and we would like to decouple them, because we want the controllers to act as a WebAPI - to be used by our Blazor website, mobile apps ...
1
vote
0
answers
168
views
Prerender razor components in server hosted Webassembly
I can only prerender a component razor into a .cshtml page if it is entered in the client.
<component type="typeof(MyApp.Client.Pages.Counter)" render-mode="WebAssemblyPrerendered&...
1
vote
1
answer
299
views
Capturing errors in hosted Blazor Web Assembly app
I have a .net Hosted Blazor Web Assembly app (the one that generates 3 projects, Client (Blazor Web Assembly project), Server (Web API Server project), Shared.
How can I log errors on the server app? ...
2
votes
1
answer
404
views
Error using MSAL on Blazor WASM Hosted prerender
I'm using a basic Blazor WASM ASPNET Core Hosted WebAssemblyPrerendered .NET 6 app. However, when I try to try to login, I get the following.
There was an error trying to log you in: 'Cannot read ...
4
votes
1
answer
325
views
Hosted Blazor WASM WebRootPath is null
I'm usually not a front end guy, so maybe this is a stupid question, but I'm stumped.
I'm working on dealing with file uploads in a hosted Blazor WASM app. WebRootPath is null in the controller, which ...
2
votes
1
answer
388
views
Click on login with Balosar project (wasm + openiddict), how to enable CORS?
I'm running Balosar project as follow:
I edit Balosar.Client Program.cs:
options.ProviderOptions.Authority = "https://localhost:44360/";
I run server with
dotnet run urls=https://...
1
vote
1
answer
325
views
Securing a blazor webassembly hosted application
I'm developing a Blazor WASM hosted application and have some questions on how to properly secure it.
The idea is that users will authenticate using an external identity provider (OpenIDConnect/PKCE), ...
1
vote
1
answer
1k
views
In the Blazor WASM server start up project shows page not found error
While creating the Blazor WASM application, why startup project is set to Server by default. How does the view on the client-side is called and displayed?
When I ran the client project as a startup, ...
0
votes
1
answer
1k
views
Uncaught RuntimeError: memory access out of boundsmono_wasm_runtime_ready
Note: this problem shows for me even if I create a new Blazor WebAssmebly App, based on target Framework .NET 5.0 and Configured for HTTPS and ASP.NET Core hosted.
Please, to test this case: create an ...
4
votes
0
answers
136
views
hosted Blazor WebAssembly use an existing, external Identity Server
Hi I have a hosted WebAssembly project. I have managed to implement IS4 on the client side using the the standalone method https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/...
2
votes
2
answers
3k
views
Blazor Wasm Hosted Prerender with Authentication AuthenticationStateProvider not registered
I have an out of the box VS Template using Blazor WebAssembly Hosted with Authentication and have converted it over to use PreRendering. However, in doing so it looks like there are a lot of services ...
1
vote
1
answer
242
views
Blazor WASM Hosted Authentication Null Reference Exception in IdentityServerBuilderConfigurationExtension
I have a blazor WASM Hosted project using IdentityServer4 ( default from VS templates ). When I launch my application, however, I get the following error. Debugging shows that the options.Value....
12
votes
2
answers
6k
views
Blazor Web Assembly App .Net Core Hosted: publish runtime error
I've created a simple Blazor Web Assembly project hosted inside a .NET Core App using .NET 5.0 RC1 Framework and I added the authorization during the wizard in Visual Studio 2019 Preview. It works ...
4
votes
2
answers
4k
views
Blazor's WebApi returns text/html instead of application/json
My controller's methods in Blazor's server side WebApi returns an html/text response instead of application/json which leds to
The provided ContentType is not supported; the supported types are '...