Answer the question
In order to leave comments, you need to log in
How can I send a claim object using Postman?
For example, this.User.GetUserId() is called in the api method . The GetUserId()
method itself:
public static Int64 GetUserId (this ClaimsPrincipal user) {
return Int64.Parse (user.Claims.First (u => u.Type == "id").Value);
}
{
"User":[
{
"id":"21",
}
]
}
{
"id":"21",
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question