Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an C# WebApi that hold business logic and I have a security API that holds user information and generates webtokens

But I want to use the token in the API that holds business logic

My google fu has left me today

does anyone know a good resource for achieving this?

What I have tried:

searching the web to no avail, hence asking the question
Posted
Updated 15-Sep-19 9:49am
Comments
ZurdoDev 12-Sep-19 7:02am    
Just write the code to do it. Where are you stuck?
Simon_Whale 12-Sep-19 7:05am    
I have written the API for the security and have written most of the code for the additional API. now I need to secure the additional API with the token gained from the security API and just using the [Authorize] header doesn't do it.

So I wanted to have a read over a resource to do this so I don't go down many different paths
dnxit 12-Sep-19 7:21am    
Hi Simon, try this article for json web token with owin

https://bitoftech.net/2014/10/27/json-web-token-asp-net-web-api-2-jwt-owin-authorization-server/

1 solution

I have solved this question thank you all for any answers.

In a nutshell ensure that the security API have an endpoint that will allow you to validate the user token.
 
Share this answer
 

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