Skip to content

integrate basic-auth #60

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

Closed
wants to merge 2 commits into from

Conversation

Uzlopak
Copy link
Collaborator

@Uzlopak Uzlopak commented Nov 12, 2021

As mentioned in #57 it could be a security issue, that the basic-auth package could be potentially hijacked.

This PR integrates basic-auth npm package into node-oauth2-server.

I checked with safeRegex if the regexes are safe from catastrophic backtracking.

I removed safe-Buffer as dependency, as we are supporting modern node versions anyway. Also reducing potential attack vector by a hijacked safe-Buffer-package.

Unit tests were integrated also.

@Uzlopak
Copy link
Collaborator Author

Uzlopak commented Nov 12, 2021

Also added lint:fix as new script... was easier than adding the missing semicolons by hand. lol

@Uzlopak
Copy link
Collaborator Author

Uzlopak commented Nov 12, 2021

D'oh. Please run the tests again.

@jankapunkt
Copy link
Member

Please change the destination to development. We have some contribution guidelines if anything else is unclear.

@Uzlopak
Copy link
Collaborator Author

Uzlopak commented Nov 12, 2021

Ok, will do ;)

@Uzlopak Uzlopak closed this Nov 12, 2021
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