Search⌘ K
AI Features

Test the Protected API

Explore how to test the security of the protected weather forecast API in your Blazor WebAssembly application. Learn to verify that unauthorized requests are blocked and understand how to confirm authentication errors, ensuring your API access is properly secured with Auth0.

The weather forecast API is protected from unauthorized access attempts. Let’s verify that the protection actually works.

Check the “Fetch data” page

Before we modify the Blazor WebAssembly application to make authorized requests to the protected API, let’s make sure that the API is actually protected.

In the root folder of the ...