Need some help and/or demo code

Hello,

I have to integrate OKTA authentication into an existing asp.net webforms (NOT MVC) vb.net application.

Can not figure out what I am missing to get it to work and need some help.
I can get to my login page, external authenticate on okta page and redirects either back to my login page (not authenticated ??) or get require nonce error when set up to redirect to other page
Have never used openID/OWIN etc before and I am stuck…

Any ideas on what to check?

Does anyone have a simplified example for webforms (C# or vb.net) that is not MVC to do the following scenario

Login.aspx - click button to go to okta login page and authenticate
redirect back to Default…aspx (and optionally display the user claims) with a logout button.
click logout button to logout and redirect back to Login.aspx

image_076

Thank you,

Hi Cramer,

Have you tried one of the samples at https://github.com/okta/samples-aspnet-webforms?

We used a sample copy similar to what the samples at the URL Warren provided earlier, converted to VB.net if it’s C# (ex: Code Converter).

  • Upgrade your app to whichever version the sample copy has.
  • Copy bin and package to your app
  • Take Startup.vb and save it under App_Code folder.
  • Take the code within Site.Master.vb and apply to the login method.
  • Run “Update-Package -reinstall” under Package manager console
  • Build solution

Good luck!

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