Skip to content

Add Base64UrlSafe utility and refactor code references #576

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
merged 3 commits into from
Jul 2, 2024

Conversation

Spomky
Copy link
Member

@Spomky Spomky commented Jul 2, 2024

This commit adds the utility Base64UrlSafe to provide methods for encoding and decoding in Base64UrlSafe format. Simultaneously, the commit also updates multiple files across the library to use this utility instead of the previously used ParagonIE\ConstantTime\Base64UrlSafe. This change will ensure consistent use of this utility throughout the project, promoting maintainability and ease of updating in the future, if required.

Target branch:
Resolves issue #

  • It is a Bug fix
  • It is a New feature
  • It is related to dependencies

Includes:

  • Breaks BC
  • Deprecations

This commit adds the utility `Base64UrlSafe` to provide methods for encoding and decoding in Base64UrlSafe format. Simultaneously, the commit also updates multiple files across the library to use this utility instead of the previously used `ParagonIE\ConstantTime\Base64UrlSafe`. This change will ensure consistent use of this utility throughout the project, promoting maintainability and ease of updating in the future, if required.
@Spomky Spomky added the bug label Jul 2, 2024
@Spomky Spomky added this to the 3.4.5 milestone Jul 2, 2024
@Spomky Spomky self-assigned this Jul 2, 2024
Spomky added 2 commits July 2, 2024 18:07
This commit adds the utility `Base64UrlSafe` to provide methods for encoding and decoding in Base64UrlSafe format. Simultaneously, the commit also updates multiple files across the library to use this utility instead of the previously used `ParagonIE\ConstantTime\Base64UrlSafe`. This change will ensure consistent use of this utility throughout the project, promoting maintainability and ease of updating in the future, if required.
This commit adds the utility `Base64UrlSafe` to provide methods for encoding and decoding in Base64UrlSafe format. Simultaneously, the commit also updates multiple files across the library to use this utility instead of the previously used `ParagonIE\ConstantTime\Base64UrlSafe`. This change will ensure consistent use of this utility throughout the project, promoting maintainability and ease of updating in the future, if required.
@Spomky Spomky merged commit 1fe7ca8 into 3.4.x Jul 2, 2024
12 of 13 checks passed
@Spomky Spomky deleted the bugs/fix-missing-b64url-safe-class branch July 2, 2024 16:12
}
}
if (($srcLen & 3) === 1) {
throw new RangeException('Incorrect padding');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attempted to load class "RangeException" from namespace "Jose\Component\Core\Util".
Did you forget a "use" statement for another namespace?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

This should be fixed with the last bug release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants