Rohan

Rohan

  • NA
  • 1.4k
  • 118k

Get value from cliams table

Dec 1 2021 5:09 AM

Hello evey one how to get value from Claims Table in .net core. I have try to this code but null value face 

 ClaimsPrincipal p = this.User;
                            var r = p.Identities.ToList();
                            if (r[0].FindFirst(c => c.Type == "ID") != null)
                            {
                                var IDs = data[0].FindFirst(c => c.Type == "ID").Value;
                            }


Answers (2)