Skip to content

Fix version in git actions and use customised PyJWT to bypass subject verification#355

Merged
yinan-symphony merged 1 commit into
finos:mainfrom
broHeryk:feature/fix-jwt-validation
May 15, 2025
Merged

Fix version in git actions and use customised PyJWT to bypass subject verification#355
yinan-symphony merged 1 commit into
finos:mainfrom
broHeryk:feature/fix-jwt-validation

Conversation

@broHeryk
Copy link
Copy Markdown
Collaborator

While testing the latest bdk version, I noticed that the validate_sub method for PyJwt package(version 2.10) is incompatible with Symphony JWT token(it has an integer subject value). The error is provided below:
Subject must be a string Validation Error
Verification can be disabled by passing the flag:
PyJWT({"verify_sub": False})
Since the vulnerabilities bot does not allow downgrading PyJWT package, I suggest using this flag in the BDK code(symphony/bdk/core/auth/jwt_helper.py)
Other changes in this PR are related to outdated versions, platforms, and a broken GitHub actions flow.

@broHeryk broHeryk force-pushed the feature/fix-jwt-validation branch from fe5a2ec to a4d1654 Compare May 14, 2025 15:03
@broHeryk broHeryk changed the title fix version in git actions and downgrade PyJWT version fix version in git actions and use customised PyJWT to bypass subject verification May 15, 2025
@yinan-symphony yinan-symphony merged commit 1a2c6d2 into finos:main May 15, 2025
12 checks passed
@yinan-symphony yinan-symphony changed the title fix version in git actions and use customised PyJWT to bypass subject verification Fix version in git actions and use customised PyJWT to bypass subject verification May 15, 2025
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