-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle OpenId Credential Offer Urls for dynamic Issuing Authorities.
WalletServer and WalletServerState can create an IssuingAuthority by Uri that impact Funke IssuingAuthorityState, ProofingState, RequestCredenti- als state. WalletServerProvider is used for obtaining IssuingAuthority's by Uri. Current Pid-based approach Funke IssuingAuthority runs the same. The function initiateCredentialOfferIssuance(.., issuer uri, config id) enables any part of the app to get credentials from any arbitrary Credential Issuer Uri as defined in the openid-credential-offer:// url. The OID4VCI scheme lives in WalletApplication.OID4VCI_CREDENTIAL_OFFER_URL_SCHEME. Added function extractCredentialIssuerData() for extracting issuer uri and config id from an OID4VCI Url. Incoming Urls from deep links / qr code links are decoded using the standard java.net library for parsing the public url and obtaining a valid url query (avoiding any Url attack attempts). Added getUrlQueryFromCustomSchemeUrl() that returns the query portion of any custom-scheme encoded Url. Extracted ScanQrDialog into a standalone Composable that can be re-used anywhere and obtain the scanned text. Refactored ReaderScreen to use the new ScanQrDialog. AddToWallet also uses this dialog when user taps on the -Scan Credential Offer- button. Tested by: - Manual tests from a emulator - Manual tests from a real device - ./gradlew check Signed-off-by: dritan-x <[email protected]>
- Loading branch information
Showing
19 changed files
with
667 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.