Skip to content

Improve bearer validation #234

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

Merged

Conversation

jorenvandeweyer
Copy link
Member

Summary

Validate the bearer token with the correct regex as described in the spec.

Linked issue(s)

fixes #127

Involved parts of the project

authenticate handler

Added tests?

already existed

OAuth2 standard

https://datatracker.ietf.org/doc/html/rfc6750#section-2.1

Reproduction

NA

jorenvandeweyer and others added 2 commits August 27, 2023 14:21

Verified

This commit was signed with the committer’s verified signature.
dreamorosi Andrea Amorosi

Verified

This commit was signed with the committer’s verified signature.
dreamorosi Andrea Amorosi
@jankapunkt
Copy link
Member

Maybe we should also add a test or two, checking for a valid bearer token and a set of invalid bearer token.

Verified

This commit was signed with the committer’s verified signature.
dreamorosi Andrea Amorosi
@jorenvandeweyer
Copy link
Member Author

Maybe we should also add a test or two, checking for a valid bearer token and a set of invalid bearer token.

@jankapunkt I'll add some tests after 5.0.0 is merged into development

Verified

This commit was signed with the committer’s verified signature.
dreamorosi Andrea Amorosi
@jankapunkt jankapunkt merged commit be1602f into node-oauth:development Sep 28, 2023
@jankapunkt jankapunkt mentioned this pull request Sep 28, 2023
1 task
@jorenvandeweyer jorenvandeweyer deleted the bugfix/bearer-validation branch September 28, 2023 08:01
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.

None yet

2 participants