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

Fix passkey not working properly in the petcare application #446

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package com.wso2_sample.api_auth_sample.model.ui.activities.login.fragments.auth.auth_method.passkey.authenticator.passkey_data

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.JsonNode
import com.wso2_sample.api_auth_sample.util.Util

data class ChallengeInfo (
@JsonIgnoreProperties(ignoreUnknown = true)
data class ChallengeInfo(
val requestId: String,
val publicKeyCredentialRequestOptions: PublicKeyCredentialRequestOptions,
val request: Any
val request: Any?
) {
companion object {
fun getChallengeInfoFromChallengeString(challengeString: String): ChallengeInfo {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.wso2_sample.api_auth_sample.model.ui.activities.login.fragments.auth.auth_method.passkey.authenticator.passkey_data

import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.wso2_sample.api_auth_sample.util.Util

@JsonIgnoreProperties(ignoreUnknown = true)
data class PasskeyChallenge(
val challenge: String,
val allowCredentials: List<String>,
val timeout: Long,
val userVerification: String,
val rpId: String
val challenge: String?,
val allowCredentials: List<String>?,
val timeout: Long?,
val userVerification: String?,
val rpId: String?
) {
override fun toString(): String {
return Util.getJsonString(this)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.wso2_sample.api_auth_sample.model.ui.activities.login.fragments.auth.auth_method.passkey.authenticator.passkey_data

data class PublicKeyCredentialRequestOptions (
val challenge: String,
val rpId: String,
val extensions: Any
import com.fasterxml.jackson.annotation.JsonIgnoreProperties

@JsonIgnoreProperties(ignoreUnknown = true)
data class PublicKeyCredentialRequestOptions(
val challenge: String?,
val rpId: String?,
val extensions: Any?
)
Loading