This issue does not exist when the app is deployed to Azure App Service only AWS Beanstalk and Google App Engine.
When I deploy my application to the cloud host that has Okta Authentication implemented and configured , I got the following error message after logging in with Okta right when the redirect URI is called. I have http://<my-application-url>/authorization-code/callback in the address bar.
I'm using only command line tools (Azure CLI, Google Cloud SDK, .NET Core SDK) on Mac OSX.
Reproducible with the Okta sample application: https://github.com/okta/samples-aspnetcore/tree/master/samples-aspnetcore-3x/okta-hosted-login
Repro steps:
- Run
dotnet publish. - Create a .zip archive from the output and upload using AWS Beanstalk manual upload to
.NET Core running on 64bit Amazon Linux 2/2.0.2platform.
OR
- Deploy to Google Cloud App Service using
gcloud app deploycommand.
In both cases after clicking Log in in the application and signing in with Okta the following error occurs.
Exception:
System.Exception: Correlation failed.
System.Exception: An error was encountered while handling the remote login.
---> System.Exception: Correlation failed.
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
