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

Refactor code for deprecation of "id" property #589

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Apr 9, 2024

The "id" property in the PublicKeyCredential is deprecated. This commit refactors the relevant code, specifically in the "PublicKeyCredential" class and several test classes, to replace the use of "Base64UrlSafe::decode($publicKeyCredential->id)" with "$publicKeyCredential->rawId". The changes are made such that the functionality is maintained but future compatibility is ensured.

Target branch: 4.9.x
Resolves issue #581

  • It is a Bug fix
  • It is a New feature
  • Breaks BC
  • Includes Deprecations

@Spomky Spomky added the bug Something isn't working label Apr 9, 2024
@Spomky Spomky added this to the 4.9.0 milestone Apr 9, 2024
@Spomky Spomky self-assigned this Apr 9, 2024
Copy link

sonarcloud bot commented Apr 9, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Jun 15, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@mergify mergify bot added the conflict label Jun 29, 2024
"id" has been deprecated in the Credential class and it was replaced by the new property "$rawId". This change was also included in several functional tests where Base64UrlSafe was being used previously. Now, 'rawId' is used throughout the system to maintain consistency. A validation to ensure the presence of a 'rawId' in the constructor of the Credential class has also been added.
@mergify mergify bot removed the conflict label Jun 29, 2024
@Spomky Spomky merged commit 82b5cd3 into 4.9.x Jun 29, 2024
15 checks passed
@Spomky Spomky deleted the deprecations/rawId branch June 29, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant