# Not receiving Claim Sid

**URL:** <https://community.auth0.com/t/not-receiving-claim-sid/133714>\
**Category:** Get Help\
**Tags:** tenants, management-api\
**Created:** [May 8, 2024, 2:54pm UTC](https://community.auth0.com/t/not-receiving-claim-sid/133714 "2024-05-08T14:54:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis.vasquez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luis.vasquez/32/49082_2.png) [@luis.vasquez](https://community.auth0.com/u/luis.vasquez)\
**Post date:** [May 8, 2024, 2:54pm UTC](https://community.auth0.com/t/not-receiving-claim-sid/133714/1 "2024-05-08T14:54:50Z")

</div>

Hi there!

I’m new on Auth0 and I working on a Blazor Net.Core application where I’m using the RemoteAuthenticatorView component on UI and I’ve configured the Auth0 Authetication on API like that:

```auto
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
    .AddJwtBearer(JwtBearerDefaults.AuthenticationScheme, c =>
    {
        c.Authority = $"https://{builder.Configuration["Auth0:Domain"]}";
        c.TokenValidationParameters = new Microsoft.IdentityModel.Tokens.TokenValidationParameters
        {
            ValidAudience = builder.Configuration["Auth0:Audience"],
            ValidIssuer = $"https://{builder.Configuration["Auth0:Domain"]}"
        };
    });

```

It’s working fine! My problem is that I can’t recover the Sid Claim from the User context, only the NameIdentifier but I do need the Sid:

```auto
var sid = HttpContext!.User.FindFirst(ClaimTypes.Sid)?.Value; //returns null
var identify= HttpContext!.User.FindFirst(ClaimTypes.NameIdentifier)?.Value; //returns value

```

Can anyone help me?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 8, 2024, 9:53pm UTC](https://community.auth0.com/t/not-receiving-claim-sid/133714/2 "2024-05-08T21:53:23Z")

</div>

Hey there @luis.vasquez welcome to the community!

I’m unfortunately not super familiar with .Net, but I’m curious if you’re working with access and ID tokens here? `NameIdentifier` makes me think SAML - As far as I’m aware the `sid` claim exists in ID tokens in the context of OIDC. If you are working with access/ID tokens (jwts), does the sid claim exist if you decode at [jwt.io](http://jwt.io)?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 22, 2024, 9:54pm UTC](https://community.auth0.com/t/not-receiving-claim-sid/133714/4 "2024-05-22T21:54:06Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
