# ClaimsPrinciple=null

**URL:** <https://community.auth0.com/t/claimsprinciple-null/7557>\
**Category:** Get Help\
**Tags:** lock-10, claims, claim, access-token\
**Created:** [July 18, 2017, 4:37am UTC](https://community.auth0.com/t/claimsprinciple-null/7557 "2017-07-18T04:37:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick2](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nick2](https://community.auth0.com/u/nick2)\
**Post date:** [July 18, 2017, 4:37am UTC](https://community.auth0.com/t/claimsprinciple-null/7557/1 "2017-07-18T04:37:33Z")

</div>

Not getting any access to any of the access token attributes that we see in the logs/users catergory. All we are getting when trying to access any of the componets are null values. User is successfuly being authenticated but no access to any of the values.

Here is our Lock widget settings/Values:  
var webAuth = new auth0.WebAuth({  
domain: ‘[lssp.auth0.com](http://lssp.auth0.com)’,  
clientID: ‘VLguJE3BK0C6TAFVkS4JaoNQsfac7VUp’,  
redirectUri: ‘[http://localhost:51102/About.aspx](http://localhost:51102/About.aspx)’,  
audience: ‘[https://lssp.auth0.com/userinfo](https://lssp.auth0.com/userinfo)’,  
responseType: ‘code’,  
scope: ‘openid profile email’  
});

Here is our attempt at retrieving the values:  
string name = ClaimsPrincipal.Current.FindFirst(“name”)?.Value;  
Label1.Text = name;

Any ideas what could be making us get nothing as values in the end?

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [July 18, 2017, 10:06am UTC](https://community.auth0.com/t/claimsprinciple-null/7557/2 "2017-07-18T10:06:02Z")

</div>

From the looks of your `redirectUri`, you aren’t handling the code exchange in your middleware to obtain a valid id\_token. If you are using the Auth0-ASPNET package, the middleware will be configured at /LoginCallback.ashx, which is what your `redirectUri` should be set to. Only after the code exchange has been completed to obtain an id\_token, will you be able to access the claims. I suggest looking at the following Quickstart and examples:

[https://auth0.com/docs/quickstart/webapp/aspnet/01-login](https://auth0.com/docs/quickstart/webapp/aspnet/01-login)

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/claimsprinciple-null/7557/3 "2018-03-02T05:55:27Z")

</div>


