Skip to content

Fix VerifyToken compilation under OTP 28 by allowing binary scheme_reg#739

Merged
yordis merged 1 commit intoueberauth:masterfrom
ptitmouton:fix-verify-header-otp28
Aug 4, 2025
Merged

Fix VerifyToken compilation under OTP 28 by allowing binary scheme_reg#739
yordis merged 1 commit intoueberauth:masterfrom
ptitmouton:fix-verify-header-otp28

Conversation

@ptitmouton
Copy link
Copy Markdown
Contributor

There is an issue with the new regex implementation in OTP28 causing Guardian.Plug.VerifyHeader not to compile (See #737 )

I could make out this Regex.compile call as the source of the problem.

Allowing opts[:scheme_reg] to be a string and calling Regex.compile later seems to make it work while also keeping changes to a minimum.

I wanted to share a possible solution should it be useful. I am not sure how elegant a solution this really is and problems with jose will keep the current state of being fully compatible with OTP28 at the moment.

@ptitmouton ptitmouton requested a review from a team as a code owner August 4, 2025 21:24
@yordis yordis merged commit 875d80d into ueberauth:master Aug 4, 2025
4 checks passed
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