I found this answer but I don't get it quite well,sorry I'm a totally noob for asp. So I already have the authorization token from the server after I successfully logged in. Now my question is it possible to get the user data for example username, first and lastname of the user using the authentication token. What I have so far is this
[HttpPost]
public ActionResult AuthenticateToken()
{
string authToken = Request.Form["AuthenticationToken"];
if (authToken.IsNullOrEmtpy())
{
throw new InvalidOperationException("Unknown authentication token");
}
// now get the user data from the api using the auth token here...
}
I hope my question make sense. Thank you.