# What is Blazor? A Tutorial on Building Web Apps with Authentication

**URL:** <https://community.auth0.com/t/what-is-blazor-a-tutorial-on-building-web-apps-with-authentication/33611>\
**Category:** Get Help\
**Tags:** dotnet, net-core, aspnet-core, .net, blazor\
**Created:** [November 11, 2019, 2:56pm UTC](https://community.auth0.com/t/what-is-blazor-a-tutorial-on-building-web-apps-with-authentication/33611 "2019-11-11T14:56:06Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [January 14, 2020, 4:40pm UTC](https://community.auth0.com/t/what-is-blazor-a-tutorial-on-building-web-apps-with-authentication/33611/25 "2020-01-14T16:40:49Z")

</div>

Hi @steamonimo,  
We’ve just updated the blog post with the logout fixes.

Regarding your request about user data, unfortunately, `User.Identity` is not automatically populated with the user profile’s data. To enable it, you should apply some changes to OpenID Connect settings in the `Startup.cs` file.  
You have to add `using Microsoft.IdentityModel.Tokens;` in the using section. Then, you need to adjust the OpenID connect options as follows:

```csharp
  .AddOpenIdConnect("Auth0", options =>
  {
    //... other options

    // Configure the scope
    options.Scope.Clear();
    options.Scope.Add("openid");
    // new stuff
    options.Scope.Add("profile");

    options.TokenValidationParameters = new TokenValidationParameters
      {
          NameClaimType = "name"
      };
    // end new stuff

    //... other options
  };

```

The newly added options are the `profile` scope, which requests the server for the user’s profile’s data, and the `TokenValidationParameters`, which indicates how to map the OpenID claims to `User.Identity` properties.  
There are historical reasons behind this. If you want to know more, read [this](https://leastprivilege.com/2016/08/21/why-does-my-authorize-attribute-not-work/).

---

_[View the full topic](https://community.auth0.com/t/what-is-blazor-a-tutorial-on-building-web-apps-with-authentication/33611)._
