I am trying to add Okta SSO to my ASP.NET 4.7 application. I’ve managed to login using the redirect to Okta’s login portal, but beyond verifying that someone “is authorized” I haven’t been able to do anything with the login.
Specifically I need to get at minimum the username of the logged in user, to use in displaying their profile and app settings, after okta redirects back to my app.
In the codebehind (C#) I’ve tried looking through the Request.Headers and the Request.QueryString, but I haven’t found anything useful there.
How can I get the username of the currently logged in user?