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

Use refetch token, if available #51

Merged
merged 7 commits into from
Apr 17, 2023
Merged

Conversation

maverick089
Copy link
Contributor

Issue # (if available):
Refresh Token Support #32

Description of changes:

  • If refresh token is available, use it to refresh the accessToken and idToken.
  • Introduce the cookiePath parameter to set the path of a cookie

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

@maverick089 maverick089 mentioned this pull request Dec 9, 2022
foxbox-doug and others added 3 commits December 13, 2022 12:28
The typing of `CloudFrontHeaders` hides the fact that there may not be a `cookie` header in the request. Previously, that would result in a `TypeError: Cannot read properties of undefined (reading 'flatMap')`.

This commit updates `_getIdTokenFromCookie` to handle the situation gracefully and log the event.

Co-authored-by: Jean de Kernier <[email protected]>
* Support SameSite directive similar to feat: httpOnly param awslabs#41
* Add type for SameSite
* Set SameSite using existing pattern
* Unit test for addition and for incorrect value validation
@aszniak
Copy link

aszniak commented Mar 31, 2023

This would actually be useful, since access tokens are short-lived

@borisfba
Copy link
Member

Hi maverick089,

I just wanted to give you a quick shoutout and say thanks for your PR!

I also want to apologize for the delay in reviewing your pull request. We've had a lot going on lately and unfortunately, we haven't been able to keep up with our usual review timeline.

Copy link
Member

@borisfba borisfba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@borisfba borisfba merged commit 28a3ff2 into awslabs:main Apr 17, 2023
@borisfba borisfba added the added-feature For PRs which containg a new feature (may be in response to a `feature-request`) label Apr 18, 2023
@borisfba borisfba added this to the 1.4.0 milestone Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
added-feature For PRs which containg a new feature (may be in response to a `feature-request`)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants