Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have successfully created ASP.NET WEB API 2 project with OAuth security token and it is working fine but there is one issue with this. When I copied the security token generated by this API for an authenticated user by providing correct user id and password, after that using it (same copied security token) on different machine( on the same network via LAN) it does allow to access all the pages!

How I can restrict this type of behavior means a security token generated by the API for a User should work only on his/her device.

Any help with the code example or link to that would be appreciated and I am open for the JWT as well.

Thanks in advance.

What I have tried:

I have seen this post : Security concerns regarding unique JWT token in asp.net web api c# but does not found any helping code to achieve this.
Posted
Comments
MadMyche 9-Mar-19 15:44pm    
What if the user has more than 1 device? I access things on my home computer, my work laptop, and a tablet.
sharadverma_VNS 29-Aug-19 3:57am    
It may be your case but what I explained here is the real requirement of the project, please tell me if you have any solution for that. I am still looking for the solution .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900