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

Add test for AccessTokenHeaderRegex and adjust regex #54665

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Apr 18, 2024

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #54660
License MIT

The regular expression was tweaked to support a wider range of tokens, especially those ending with an equals sign and fulfil with the RFC6750.
A new test was added to AccessTokenAuthenticatorTest to ensure that the regular expression in HeaderAccessTokenExtractor works correctly.

A new test was added to AccessTokenAuthenticatorTest to ensure that the regular expression in HeaderAccessTokenExtractor works correctly. The regular expression was tweaked to support a wider range of tokens, especially those ending with an equals sign.
@chalasr
Copy link
Member

chalasr commented Apr 18, 2024

Thank you @Spomky.

@chalasr chalasr merged commit a79cc86 into symfony:6.4 Apr 18, 2024
9 of 10 checks passed
@Spomky Spomky deleted the bugs/access-token-wrong-regex branch April 19, 2024 04:17
This was referenced Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants