Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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
@Spomky Spomky force-pushed the deprecations/rawId branch from 0cf782b to f1e7522 Compare April 9, 2024 09:46
Copy link

sonarqubecloud 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

@Spomky Spomky force-pushed the deprecations/rawId branch from f1e7522 to 03b7a7f Compare June 15, 2024 10:13
Copy link

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.
@Spomky Spomky force-pushed the deprecations/rawId branch from 6c917ae to 5006f53 Compare June 29, 2024 12:33
@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant