Skip to content
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

fix(auth): Fix for sending session expired when an invalid grant exception is received #2524

Merged
merged 6 commits into from
Jul 25, 2023

Conversation

gpanshu
Copy link
Contributor

@gpanshu gpanshu commented Jul 20, 2023

  • PR title and description conform to Pull Request guidelines.

Issue #, if available: #2481

Description of changes: When we get an invalid_grant exception back from cognito we do not send the session expired hub event but we should as that means your session is no longer valid. This PR fixes that. Cognito also sends the error_description which was not captured

How did you test these changes?
(Please add a line here how the changes were tested)

Documentation update required?

  • No
  • Yes (Please include a PR link for the documentation update)

General Checklist

  • Added Unit Tests
  • Added Integration Tests
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@gpanshu gpanshu requested a review from a team as a code owner July 20, 2023 15:59
@gpanshu gpanshu self-assigned this Jul 20, 2023
@gpanshu gpanshu linked an issue Jul 21, 2023 that may be closed by this pull request
1 task
tjleing
tjleing previously approved these changes Jul 21, 2023
@gpanshu gpanshu force-pushed the fix-sessionexpired-when-invalidgrant branch from 198ceb7 to bf1ad63 Compare July 21, 2023 18:47
@gpanshu gpanshu force-pushed the fix-sessionexpired-when-invalidgrant branch from bf1ad63 to 89c88dd Compare July 24, 2023 15:46
@gpanshu gpanshu requested a review from tjleing July 24, 2023 15:49
@gpanshu gpanshu enabled auto-merge (squash) July 24, 2023 17:22
@gpanshu gpanshu merged commit f142fb7 into main Jul 25, 2023
@gpanshu gpanshu deleted the fix-sessionexpired-when-invalidgrant branch July 25, 2023 15:23
gpanshu added a commit that referenced this pull request Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SESSION_EXPIRED event not called after refresh token expires
4 participants