.net framework mvc app authenticate with jwt

As need to make the old app compatible with the auth0 login. The old app is a MVC project in .net framework.
I have tried to use https://stackoverflow.com/questions/29791499/how-to-use-jwt-in-mvc-application-for-authentication-and-authorization authorization presented in this post.

My problem is that no user is authenticated. All my credentials are as in decode jwt( decoded on jwt.io) and the secret is copy pasted.

I do not understand why on mvc does not work and the solution for api, if i enable webapiconfig, works
The solution i am using for api is the one found here: How can I consume a JWT access token in a WCF "restful" endpoint (C#)

Any adivice?

Thank you,

Hi @radu.pop1,

I apologize in the delayed response. I would like to reopen the topic for discussion if you have not already found a solution.

Depending on what .Net version you are using, I highly recommend taking a look at the following quickstarts:


Let me know if these help at all.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.