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

SDKS-1710 WebAuthn Device Management #415

Merged
merged 6 commits into from
May 22, 2024
Merged

SDKS-1710 WebAuthn Device Management #415

merged 6 commits into from
May 22, 2024

Conversation

rodrigoareis
Copy link
Contributor

@rodrigoareis rodrigoareis commented May 15, 2024

JIRA Ticket

SDKS-1710 WebAuthn Device Management

Description

This change introduces a new method for removing WebAuthn keys from the server and locally in a single call.

Note: The ability to delete keys from the server relies on the availability of a new REST API for WebAuthn resources, which will be available on future versions of PingAM and PingOne Advanced Identity Cloud.

@rodrigoareis rodrigoareis requested review from spetrov and witrisna May 15, 2024 23:27
@rodrigoareis rodrigoareis self-assigned this May 15, 2024
WebAuthnRepository {

override suspend fun delete(publicKeyCredentialSource: PublicKeyCredentialSource) {
val credentialId = String(publicKeyCredentialSource.id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be base64?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it's not required, the toJson and fromJson methods from the PublicKeyCredentialSource class handles the Base64 decode and decode.


override suspend fun delete(publicKeyCredentialSource: PublicKeyCredentialSource) {
val credentialId = String(publicKeyCredentialSource.id)
val userId = String(publicKeyCredentialSource.userHandle)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be base64?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same as above

witrisna
witrisna previously approved these changes May 16, 2024
witrisna
witrisna previously approved these changes May 16, 2024
Copy link
Contributor

@spetrov spetrov left a comment

Choose a reason for hiding this comment

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

LGTM! 👍🏻

@spetrov spetrov merged commit e6f7b66 into develop May 22, 2024
4 of 8 checks passed
@spetrov spetrov deleted the SDKS-1710 branch May 22, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants