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

cdk-cloudfront-authorization: Skip basic auth if client secret is undefined #55

Merged

Conversation

@jumi-dev
Copy link

@jumi-dev jumi-dev commented Oct 8, 2020

Hi,

Thank you for providing this library.

I used the package cdk-cloudfront-authorization.
When the authentication token was expired, the refresh auth action wasn't successfull. The error invalid_client occurred.

My cognito app client doesn't use client secrets. However, an authorization header was sent to cognito.
The authorization header contained 1234567890:undefined. Therefore, I've implemented an additional check to skip the authorization header if the value is undefined.

Best regards,
Julian

@hupe1980 hupe1980 self-requested a review Oct 8, 2020
Copy link
Author

@jumi-dev jumi-dev left a comment

Implemented proposed solution

@hupe1980 hupe1980 merged commit d6e46d6 into cloudcomponents:master Oct 8, 2020
2 checks passed
2 checks passed
Node 10 build
Details
Node 12 build
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.