.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 c# - How to use JWT in MVC application for authentication and authorization? - Stack Overflow 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#) - #3 by nicolas_sabena

Any adivice?

Thank you,
Radu

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:

https://auth0.com/docs/quickstart/webapp/aspnet-core-v1_1

Let me know if these help at all.

Thanks,
Dan

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