Comments (10)
Hi aussiearef@,
Your solution configuration file contains secrets. I would suggest removing them and revoking the app client id/secret key.
Here's a good tool to prevent that may from happening:
https://github.com/awslabs/git-secrets
from aws-aspnet-cognito-identity-provider.
Thanks @assyadh
I removed the secrets.
Update on the issue:
If I run the website using "dotnet run" or in Visual Studio 2019 Preview, I get the StackOverflow exception. However if I run the .exe file of the website, it works fine!
I am trying to get a dump file and see where the issue resides. So far I know that if I remove AddCognitoIdentity there will be no issue
from aws-aspnet-cognito-identity-provider.
Update:
So I have used some debuggers to see where the Stackoverflow is originated form. It turns out that stack overflow happens when a serialization/serialization happens .
As you see in the image below there is a cycle detected.
I guess one of your models has a self reference and so during serialization/deserializaion stackoverflow happens
from aws-aspnet-cognito-identity-provider.
I also ran a profiler and it shows that Identity.Cognito.dll has a self reference that chews up cpu
from aws-aspnet-cognito-identity-provider.
I am currently out of the office. I'll have a look when I'm back early January.
from aws-aspnet-cognito-identity-provider.
I am not able to reproduce the issue using your webapp. It works properly in VS2019/.NET Core 3.0 CLI as well as when running the exe directly.
Are you still hitting the issue?
from aws-aspnet-cognito-identity-provider.
I am having the same issue. I am just running the Sample project from here[1] in visual studio 2017 with .netcore 2.2. It runs for while but after a sometime, if i start a new instance from VS i get the stackoverflow exception. Then i have to kill my iis express instance, close the browser instance and restart VS to get it to work again.
@aussiearef where you able to resolve this issue?
[1] https://github.com/aws/aws-aspnet-cognito-identity-provider/tree/master/samples/Samples
from aws-aspnet-cognito-identity-provider.
Reopening due to additional reports.
from aws-aspnet-cognito-identity-provider.
Reopening due to additional reports.
from aws-aspnet-cognito-identity-provider.
Hi everyone,
I have just release a new version 0.9.02 that should solve the issue:
https://www.nuget.org/packages/Amazon.AspNetCore.Identity.Cognito/0.9.0.2
Please let me know how that works for you!
Hamza
from aws-aspnet-cognito-identity-provider.
Related Issues (20)
- Ways of supporting social login HOT 2
- Security: Defaults require secrets be published in unencrypted configuration files. HOT 6
- Sample App is nonfunctional for core common use cases and actively misleads users, seems abandoned. HOT 6
- Getting error "Unable to get IAM security credentials from EC2 Instance Metadata Service." while trying to login HOT 4
- AWSCognitoClientOptions doesn't contain a Region property (which is required by AWS) HOT 5
- Use inclusive pronouns in documentation. HOT 2
- Any plans to support .NET 5.0? HOT 4
- Implementing MFA suppression via remembered devices, getting 'Invalid device key given.' exception HOT 6
- Sample not working properly - Unable to get IAM security credentials from EC2 Instance Metadata Service. HOT 3
- Unable to retrieve UserPoolClientId and UserPoolClientSecret form AWS Parameter Store HOT 4
- Ability to reload AWSOptions after ASP.NET Core Lambda Startup HOT 19
- How to retrieve the list of all roles (groups) HOT 3
- AmazonCognitoIdentityProviderClient Usage HOT 6
- RemovePasswordAsync() fails for an unconfirmed user HOT 4
- Sign Out from all "active sessions" HOT 4
- RevokeToken behavior for multiple logins
- Support for External Providers HOT 4
- Check Password for unconfirmed user. HOT 5
- PasswordSignInAsync or CheckPasswordSignInAsync and SignInAsync are not persisting auth cookie User.Identity.IsAuthenticated is false HOT 6
- We can no longer search or find users with this sdk HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-aspnet-cognito-identity-provider.