-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie storage limit problem with Cognito #10498
Comments
@adilek Are you using Cognito Hosted UI? |
We do not use hosted UI due its limitations. Instead we use APIs from Amplify to work with Cognito. |
Hey @adilek 👋 thanks for raising this issue. We've opened an internal ticket with the Cognito team to see if this can be addressed on the service side or if they have any feedback/recommendations on how to mitigate it. Will respond back with any updates. |
I'm also getting this, CloudFront error is "494 ERROR The request could not be satisfied.", for what it's worth it. LocalStorage is not a secure option for session storage and is discouraged by OWASP, it's a shame that after several years the Amplify/Cognito teams haven't addressed this. The first issue I could find on this dates from as early as Feb 2018. |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When Cognito user pool client id changes, new sign-in tries to create new cookie elements. Eventually it gets larger. Then CloudFront blocks it.
One possible solution would be clearing all Cognito related cookies before new signin.
There are already two tickets for this matter. But Amplify team seems ignore them. Not customer obsessive :)
#1545
#5330 (comment)
Expected behavior
No server-side error must happen.
Reproduction steps
To reproduce:
After 3rd iteration you get the error message from the CloudFront.
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: