Skip to content

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

@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.

@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

@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.

2 participants