OktaOIDC (nuget): This Package for Okta WebForm and MVC scenarios 1- This Package supports .net Frameworks versions betwwn 4.5.1 up to 4.8.   2- Addng new json Files copy OIDC info to it. 3- adding new Web.config param CanConnectOIDCFromServer = false 4- Allowing Logoff and automatic token refresh Just add to your scopes offline_access Make sure that CanConnectOIDCFromServer = true, 5- ErrorPage Handling, add the to web.config customErrors mode="On" defaultRedirect="customerror.html"  6- ErrorHandling Module, add to web.config system.webServer:modules: add name="OktaOIDCRequestModule" type="OktaOIDCFW.OktaOIDCRequestModule, OktaOIDCFW" 7- this Package will handle the login Automatically, you can handle that by yourself by adding to web.config AutomaticLogin = false 8- Adding the support for ASP.NET 4,5 and MVC just add ApplicationType = "ASPNET4" or ApplicationType = "MVC" or ApplicationType = "SECACPNET4" or ApplicationType = "SECACPNET5" to appsettings 9- Fix for Issue System.Web.HttpException: Server cannot append cookies after HTTP headers have been sent 10- New Param Added to select the startup class called StartupClass values WEB_FORMS_STARTUP or MVC_STARTUP 11- Adding the following Controls: SlidingExpiration, UseTokenLifetime, RequireHttpsMetadata, SaveTokens 12- Adding X-Forward-Proto to handle Load Balance 13- Enable Nonce cookie chceck control
Keywords: OKTA|OIDC|Security