# Allow anonymous access to certain areas of my application

**URL:** <https://community.auth0.com/t/allow-anonymous-access-to-certain-areas-of-my-application/79978>\
**Category:** Get Help\
**Created:** [March 16, 2022, 2:03am UTC](https://community.auth0.com/t/allow-anonymous-access-to-certain-areas-of-my-application/79978 "2022-03-16T02:03:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincenzo.scalera](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vincenzo.scalera/32/30576_2.png) [@vincenzo.scalera](https://community.auth0.com/u/vincenzo.scalera)\
**Post date:** [March 16, 2022, 2:03am UTC](https://community.auth0.com/t/allow-anonymous-access-to-certain-areas-of-my-application/79978/1 "2022-03-16T02:03:19Z")

</div>

Hi all,  
I’ve spent the last few hours trying to figure out how I can allow anonymous access on targeted area of my application (built with .NET 6 / Blazor) - with no success.

The authentication part has been working fine for the past few months since we went live, however we need to add a “public” area where non authenticated users are able to navigate part of our web based application without being forced to create a user and/or authenticate.

I was hoping that there is a way of configuring the application in a way that - for example - for certain urls we do not redirect the users to the login area but I can’t find anything useful on neither the documentation nor the community posts. Am I missing something?

Thank you

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 16, 2022, 8:00pm UTC](https://community.auth0.com/t/allow-anonymous-access-to-certain-areas-of-my-application/79978/3 "2022-03-16T20:00:30Z")

</div>

Hi @vincenzo.scalera,

Welcome to the Auth0 Community!

I don’t know much about Blazor, but after a quick look at their docs it seems this is the job of the [[Authorize] attribute](https://docs.microsoft.com/en-us/aspnet/core/blazor/security/?view=aspnetcore-6.0#authorize-attribute).

In our example: [secure-blazor-wasm-quiz-manager/Client/Pages at master · auth0-blog/secure-blazor-wasm-quiz-manager · GitHub](https://github.com/auth0-blog/secure-blazor-wasm-quiz-manager/tree/master/Client/Pages), you can see the attribute is added to the `QuizViewer` page.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![vincenzo.scalera](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vincenzo.scalera/32/30576_2.png) [@vincenzo.scalera](https://community.auth0.com/u/vincenzo.scalera)\
**Post date:** [March 17, 2022, 1:24am UTC](https://community.auth0.com/t/allow-anonymous-access-to-certain-areas-of-my-application/79978/4 "2022-03-17T01:24:02Z")

</div>

Hey Dan thanks a lot for the quick reply  
And yes that’s exactly it! I should have dug a bit more into the MS documentation

By removing the Authorize attribute from the pages I want to make public, they are not forced through to the authorization process.

Thank you

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 17, 2022, 3:32pm UTC](https://community.auth0.com/t/allow-anonymous-access-to-certain-areas-of-my-application/79978/5 "2022-03-17T15:32:39Z")

</div>

No problem! Let us know if you have any other questions.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 22, 2022, 12:02am UTC](https://community.auth0.com/t/allow-anonymous-access-to-certain-areas-of-my-application/79978/6 "2022-04-22T00:02:02Z")

</div>


