Securing Blazor WebAssembly Apps

Hi @Ditchford ,
I tried to figure out what is happening with your application but honestly I’m afraid I can’t do much.

As far as I know, this message is shown when your application comes across a <NotAuthorized> element and in the Blazor WASM case, it should happen on the client side (i.e., the server is not involved).

For example, in the sample project of my article, this message is shown only once, before the user authentication. This is correct because the current not authenticated user is attempting to access the quiz page.
If you switch between the home page and the quiz page before authenticating, you can see this message shown in the JavaScript console for each attempt to access the quiz page. No request is submitted to the server though.

I hope this may help to identify what is happening in your application.

1 Like