Search code examples
c#asp.net-identity

how do I validate a token generated with asp.net identity on a asmx service


net identity service which returns a token Bearer which I can validate really easy with the authorize attribute. Now my question is how can I validate this token bearer on other.net technology lets say an asmx web service?

basically, I want to decrypt the token to validate it on other services


Solution

  • Well after some weeks of research the easiest way I have found is to make a call the wcf methods to a controller of the rest api. I got the idea from this post

    asp.net identity get all roles of logged in user