HttpContext.GetOwinContext().Authentication.GetExternalLoginInfoAsync() always return null after successfully login using OKTA SAML2.0

Solution is more related to correct steps which I missed.

  1. code is absolutely fine and it will work

In order to run the application we have roslyn folder in bin folder and by mistake I copied roslyn folder from RUUNING https://localhost:44376 application. We should not copy and paste roslyn folder from running application to https://localhost:2687.

Clue :
surprisingly IIS shows 2 application running even https://localhost:44376 visual studio application was closed.

and now I am getting login info details from okta

enter image description here

enter image description here

Leave a Comment