Include UserId in Login Response (Token) - Web API 2
Hi everyone, A quick post on how to include the user’s id in your login response when using Web API 2. The default response to the /Token request is as follows: {…
Read postLet's take a look at what I've broken today
Hi everyone, A quick post on how to include the user’s id in your login response when using Web API 2. The default response to the /Token request is as follows: {…
Read postHi everyone, Just a quick post on how to retrieve the current user’s id in a Web API 2 controller: var userId = RequestContext.Principal.Identity.GetUserId(); Note…
Read postHi everyone, I ran into the following error while attempting to authenticate using .NET Web Api: POST http://localhost:63720/Token HTTP/1.1 Host: localhost:63720…
Read postHey everyone, I ran into the following error when I tried to add a new Web API project in Visual Studio Express 2015 for Web: Could not find part of the path ‘C:xlib’…
Read post