Okta API - ASP.NET WebForms?

The .NET API Examples given on the website are both ASP.NET MVC projects.

https://developer.okta.com/code/dotnet/

Can the Okta API be used within an ASP.NET WebForms project and if so, is there an example?

— xavier

Yes! Okta can work with ASP .NET Web Forms. You will need to add OWIN dependencies to your Web Forms project. We recently published a blog post about this: https://developer.okta.com/blog/2018/08/29/secure-webforms-with-openidconnect-okta

The blog post hasn’t been updated with the new Okta.AspNet package we just published, which makes adding it to your OWIN pipeline even easier. See these instructions for that: https://developer.okta.com/quickstart/#/okta-sign-in-page/dotnet/aspnet4

Hi! the example works great for a single webpage. I can’t seem to find an example where I can authenticate webforms contained in an entire folder (without using MVC). Thanks for your help.