-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
WebAuthnRepository { | ||
|
||
override suspend fun delete(publicKeyCredentialSource: PublicKeyCredentialSource) { | ||
val credentialId = String(publicKeyCredentialSource.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be base64?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be base64?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
forgerock-auth/src/main/java/org/forgerock/android/auth/RemoteWebAuthnRepository.kt
Outdated
Show resolved
Hide resolved
forgerock-auth/src/main/java/org/forgerock/android/auth/webauthn/FRWebAuthn.kt
Outdated
Show resolved
Hide resolved
forgerock-auth/src/main/java/org/forgerock/android/auth/webauthn/FRWebAuthn.kt
Outdated
Show resolved
Hide resolved
forgerock-auth/src/main/java/org/forgerock/android/auth/webauthn/FRWebAuthn.kt
Outdated
Show resolved
Hide resolved
forgerock-auth/src/main/java/org/forgerock/android/auth/RemoteWebAuthnRepository.kt
Outdated
Show resolved
Hide resolved
forgerock-auth/src/main/java/org/forgerock/android/auth/webauthn/FRWebAuthn.kt
Show resolved
Hide resolved
forgerock-auth/src/main/java/org/forgerock/android/auth/webauthn/WebAuthnRegistration.kt
Outdated
Show resolved
Hide resolved
forgerock-auth/src/test/java/org/forgerock/android/auth/webauthn/FRWebAuthnTest.kt
Outdated
Show resolved
Hide resolved
forgerock-auth/src/main/java/org/forgerock/android/auth/webauthn/FRWebAuthn.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍🏻
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.