In my Api 2.2 OWIN application for web applications, I have a situation where I need to manually decode the carrier token, but I do not know how to do this. This is my startup.cs
public class Startup { public static OAuthAuthorizationServerOptions OAuthServerOptions { get; private set; } public static UnityContainer IoC; public void Configuration(IAppBuilder app) {
In my controller, Im sends a carrier token as a parameter
[RoutePrefix("api/EP")] public class EPController : MasterController { [HttpGet] [AllowAnonymous] [Route("DC")] public async Task<HttpResponseMessage> GetDC(string token) {
How to manually decode and receive claims from the token passed as a parameter?
NOTE I know that I can send a token in the header and use [Authorize] and (ClaimsIdentity) User.Identity, etc., but the question is how to read the token when it is not presented in the header.
source share