Last post Sep 13, 2017 09:33 AM by Cathy Zou
Sep 12, 2017 12:44 PM|CH_HO|LINK
I followed this article:
Unfortunately the access of .../Token is not possible, because it is not found. Am I missing something?
I created user accounts (Identity), so with calling a login method users should get a token, as described in the above article. With this token they are able to call methods that have the [Authorize] attribute, am I correct?
Do I need to install any packages (NuGet) or do I have to write any other lines of code?
Thank you in advance for your help!
Sep 13, 2017 09:33 AM|Cathy Zou|LINK
Try to add [HttpPost(“CreateToken”)] and [Route(“Token”)] on CreateToken Action, [Route(“api/[Controller]”)] on ValuesController.
For more information, please check the following link :