aws / aws-aspnet-cognito-identity-provider

ASP.NET Core Identity Provider for Amazon Cognito
https://aws.amazon.com/developer/language/net/
Apache License 2.0
215 stars 89 forks source link

Issue signing into Cognito when running site on Ubuntu server #111

Closed flgatormike closed 5 years ago

flgatormike commented 5 years ago

At my work we have used this provider on a Windows server without issue. I am doing some side project for my daughters band and want to use it, however I run my ASP.NET core sites from an Ubuntu server. And when I call:

var result = await _signInManager.PasswordSignInAsync("email", "password", false, lockoutOnFailure: false);

I get:

502 Bad Gateway nginx/1.14.0 (Ubuntu)

If I run the same code from Windows, it works fine. It may be a problem with how my Ubuntu server is configured, but just wondering if anyone had any recommendations?

Thanks!

flgatormike commented 5 years ago

I checked the nginx log and saw this: "upstream sent too big header while reading response header from upstream" So it's probably just a configuration I can change on my server.