Closed omarhimada closed 4 years ago
In Amazon.Extensions.CognitoAuthentication.CognitoUserPool
the method FindByIdAsync
calls Provider.AdminGetUserAsync
and this is the call that throws the exception. Looks like whatever Hostname is getting called for ca-central-1 is perhaps incorrect
var response = await Provider.AdminGetUserAsync(new AdminGetUserRequest
{
Username = userID,
UserPoolId = this.PoolID
}).ConfigureAwait(false);
Found the problem - the configuration parameter does not accept the display name of the region endpoint. For example "CACentral1" is invalid, it should be "ca-central-1"
Hi I'm attempting to setup Cognito authentication in a .NET Core project and whenever a request is made to AWS I get this "No such host is known" exception. I even get this same exception when using the sample project. Please see below for the console output and stack trace: