Skip to content

Commit

Permalink
Presentation during issuance fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Sorotokin <[email protected]>
  • Loading branch information
sorotokin committed Nov 22, 2024
1 parent b902862 commit 32f4cf4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package com.android.identity.issuance.evidence

class EvidenceRequestOpenid4Vp(
val originUri: String,
val request: String
val request: String,
val cancelText: String? = null
): EvidenceRequest()
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class FunkeProofingState(
} else {
if (openid4VpRequest != null) {
val uri = URI(authorizationMetadata.authorizationChallengeEndpoint!!)
val origin = uri.scheme + ":" + uri.authority
val origin = uri.scheme + "//:" + uri.authority
list.add(EvidenceRequestOpenid4Vp(origin, openid4VpRequest!!))
}
list.add(EvidenceRequestWeb(authorizeUrl, proofingInfo.landingUrl))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,9 @@ fun EvidenceRequestOpenid4Vp(
modifier = Modifier.padding(8.dp),
onClick = {provisioningViewModel.moveToNextEvidenceRequest()}
) {
Text(text = stringResource(id = R.string.presentation_evidence_cancel))
Text(text = evidenceRequest.cancelText ?:
stringResource(id = R.string.presentation_evidence_cancel)
)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion wallet/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
You can do this by presenting the eID you have in your wallet.
</string>
<string name="presentation_evidence_ok">Present eID</string>
<string name="presentation_evidence_cancel">Cancel</string>
<string name="presentation_evidence_cancel">Use Web Browser</string>

<!-- Accessibility -->
<string name="accessibility_go_back_icon">Go back</string>
Expand Down

0 comments on commit 32f4cf4

Please sign in to comment.