Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcdk-cloudfront-authorization: Skip basic auth if client secret is undefined #55
Conversation
packages/cdk-cloudfront-authorization/src/lambdas/refresh-auth/index.ts
Outdated
Show resolved
Hide resolved
|
Implemented proposed solution |
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