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

Make lookup of authorization header value case insensitive #107

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

robrat
Copy link
Contributor

@robrat robrat commented Jul 3, 2020

some setups pass the basic auth header with first letter in upper case, so also check for this value

Copy link
Owner

@clebert clebert left a comment

Choose a reason for hiding this comment

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

Please adapt your commit message to the project style. This project does not use Commitizen.

src/cdk/utils/basic-authorizer-handler/index.ts Outdated Show resolved Hide resolved
@robrat robrat force-pushed the fix/authorization-header-name branch from de27618 to 6cb9249 Compare July 6, 2020 13:34
src/cdk/utils/basic-authorizer-handler/index.ts Outdated Show resolved Hide resolved
src/cdk/utils/basic-authorizer-handler/index.ts Outdated Show resolved Hide resolved
src/cdk/utils/basic-authorizer-handler/index.ts Outdated Show resolved Hide resolved
src/cdk/utils/basic-authorizer-handler/index.test.ts Outdated Show resolved Hide resolved
src/cdk/utils/basic-authorizer-handler/index.test.ts Outdated Show resolved Hide resolved
@robrat robrat force-pushed the fix/authorization-header-name branch from 6cb9249 to cf67770 Compare July 6, 2020 15:04
jest.config.js Outdated Show resolved Hide resolved
src/cdk/utils/basic-authorizer-handler/index.ts Outdated Show resolved Hide resolved
src/cdk/utils/basic-authorizer-handler/index.ts Outdated Show resolved Hide resolved
@clebert clebert changed the title fix: also check for Authorization header value Make lookup of authorization header value case insensitive Jul 7, 2020
@robrat robrat force-pushed the fix/authorization-header-name branch 2 times, most recently from f7f8326 to c3aea18 Compare July 7, 2020 12:42
- getHeaderValue() cannot be moved to cdk/utils because it is not bundled
- added authorizer to jest coveragePathIgnorePatterns as advised in pull request discussion
@clebert clebert merged commit 0949f1c into clebert:master Jul 7, 2020
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.

2 participants