ASP.NET Web Forms, Auth0 and OWIN
Sometimes supporting an old technology is much more troublesome, but when you manage to overcome the challenge, you will be feeling so much more satisfied. My boss wants to use Auth0 for authentication, but the application that we need to modify is in ASP.NET Web Forms and there is no Auth0 quickstart for ASP.NET Web Forms and I can't find an example online. I remember I saw somewhere that we can use OWIN on ASP.NET Web Forms with a bit of tweaking. Following the awesome blog post below, I managed to get OWIN to work. https://tomasherceg.com/blog/post/modernizing-asp-net-web-forms-applications-part-2 Next, I followed Auth0 quickstart for ASP.NET (OWIN) https://auth0.com/docs/quickstart/webapp/aspnet-owin/01-login#configure-auth0 One thing to note, the RedirectUri specified in the app has to be registered in Callback URLs in the Auth0 account. Then comes the customization. First, I need to be able to secure pages. Reading online, I found out that simply adding the f...