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
213 stars 89 forks source link

AWSCognitoClientOptions doesn't contain a Region property (which is required by AWS) #203

Closed evanirla closed 3 years ago

evanirla commented 3 years ago

https://github.com/aws/aws-aspnet-cognito-identity-provider/blob/dc9b3f1ad1738d3bc0eb1db3e408f335d6fa2301/src/Amazon.AspNetCore.Identity.Cognito/Extensions/AWSCognitoClientOptions.cs#L18

When following the implementation guide, you get the following error when trying to authenticate a user: Amazon.Runtime.AmazonClientException: No RegionEndpoint or ServiceURL configured

ashishdhingra commented 3 years ago

Hi @evanirla,

Good afternoon.

Thanks for posting the question. Please confirm if you have configured region in appsettings.Development.json (for development environment) or appsettings.json as specified in the Readme.

Thanks, Ashish

evanirla commented 3 years ago

Hi @evanirla,

Good afternoon.

Thanks for posting the question. Please confirm if you have configured region in appsettings.Development.json (for development environment) or appsettings.json as specified in the Readme.

Thanks, Ashish

I have! As far as I’m concerned, the SDK is only reading 3 of the 4 required properties. In the logs it shows that the settings were read appropriately.

ashishdhingra commented 3 years ago

Hi @evanirla, Good afternoon. Thanks for posting the question. Please confirm if you have configured region in appsettings.Development.json (for development environment) or appsettings.json as specified in the Readme. Thanks, Ashish

I have! As far as I’m concerned, the SDK is only reading 3 of the 4 required properties. In the logs it shows that the settings were read appropriately.

@evanirla Please specify Region in your appsettings.json as specified in the Readme and let me know if it works.

Thanks, Ashish

evanirla commented 3 years ago

PEBKAC error, please ignore. Thanks for your help @ashishdhingra! Although I had everything in appsettings.json configured correctly, I had it in the wrong directory...

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.