Skip to content

Commit

Permalink
feat: Added support for siopv2 url #1923
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Sep 25, 2023
1 parent 174af3b commit 765e006
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
12 changes: 7 additions & 5 deletions lib/app/shared/helper_functions/helper_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,15 @@ bool isOIDC4VCIUrl(Uri uri) {
}

bool isSIOPV2OROIDC4VPUrl(Uri uri) {
final isOID4VCUrl = uri.toString().startsWith('openid');
final isOpenIdUrl = uri.toString().startsWith('openid://?') ||
uri.toString().startsWith('openid-vc://?') ||
uri.toString().startsWith('openid-hedera://?');

return (isOID4VCUrl &&
(uri.toString().startsWith('openid://?') ||
uri.toString().startsWith('openid-vc://?') ||
uri.toString().startsWith('openid-hedera://?'))) ||
final isSiopv2Url = uri.toString().startsWith('siopv2://?');
final isAuthorizeEndPoint =
uri.toString().startsWith(Parameters.authorizeEndPoint);

return isOpenIdUrl || isAuthorizeEndPoint || isSiopv2Url;
}

Future<OIDC4VCType?> getOIDC4VCTypeForIssuance({
Expand Down
32 changes: 16 additions & 16 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ packages:
dependency: transitive
description:
name: archive
sha256: e0902a06f0e00414e4e3438a084580161279f137aeb862274710f29ec10cf01e
sha256: "20071638cbe4e5964a427cfa0e86dce55d060bc7d82d56f3554095d7239a8765"
url: "https://pub.dev"
source: hosted
version: "3.3.9"
version: "3.4.2"
args:
dependency: transitive
description:
Expand Down Expand Up @@ -476,10 +476,10 @@ packages:
dependency: transitive
description:
name: cryptography
sha256: "11d083541666d80bba21190d35ff70b2497c81e064e82d1b8a07d801f7c7e282"
sha256: d146b76d33d94548cf035233fbc2f4338c1242fa119013bead807d033fc4ae05
url: "https://pub.dev"
source: hosted
version: "2.6.0"
version: "2.7.0"
csslib:
dependency: transitive
description:
Expand Down Expand Up @@ -627,10 +627,10 @@ packages:
dependency: "direct main"
description:
name: dio
sha256: ce75a1b40947fea0a0e16ce73337122a86762e38b982e1ccb909daa3b9bc4197
sha256: "417e2a6f9d83ab396ec38ff4ea5da6c254da71e4db765ad737a42af6930140b7"
url: "https://pub.dev"
source: hosted
version: "5.3.2"
version: "5.3.3"
dio_cache_interceptor:
dependency: transitive
description:
Expand Down Expand Up @@ -1231,10 +1231,10 @@ packages:
dependency: "direct main"
description:
name: image
sha256: a72242c9a0ffb65d03de1b7113bc4e189686fc07c7147b8b41811d0dd0e0d9bf
sha256: "93d1141eb65fe62414d5492de96ca2bff97eba0ca9218a89ad407a6f201fcadf"
url: "https://pub.dev"
source: hosted
version: "4.0.17"
version: "4.1.2"
image_picker:
dependency: "direct main"
description:
Expand All @@ -1247,10 +1247,10 @@ packages:
dependency: transitive
description:
name: image_picker_android
sha256: "47da2161c2e9f8f8a9cbbd89d466d174333fbdd769aeed848912e0b16d9cb369"
sha256: "0c7b83bbe2980c8a8e36e974f055e11e51675784e13a4762889feed0f3937ff2"
url: "https://pub.dev"
source: hosted
version: "0.8.8"
version: "0.8.8+1"
image_picker_for_web:
dependency: transitive
description:
Expand Down Expand Up @@ -1445,10 +1445,10 @@ packages:
dependency: "direct overridden"
description:
name: logger
sha256: ba3bc83117b2b49bdd723c0ea7848e8285a0fbc597ba09203b20d329d020c24a
sha256: "6bbb9d6f7056729537a4309bda2e74e18e5d9f14302489cc1e93f33b3fe32cac"
url: "https://pub.dev"
source: hosted
version: "2.0.2"
version: "2.0.2+1"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -1628,10 +1628,10 @@ packages:
dependency: "direct main"
description:
name: open_filex
sha256: "854aefd72dfd74219dc8c8d1767c34ec1eae64b8399a5be317bddb1ec2108915"
sha256: a6c95237767c5647e68b71a476602fcf4f1bfc530c126265e53addae22ef5fc2
url: "https://pub.dev"
source: hosted
version: "4.3.2"
version: "4.3.4"
package_config:
dependency: transitive
description:
Expand Down Expand Up @@ -2601,10 +2601,10 @@ packages:
dependency: "direct main"
description:
name: webview_flutter_wkwebview
sha256: d2f7241849582da80b79acb03bb936422412ce5c0c79fb5f6a1de5421a5aecc4
sha256: "485af05f2c5f83c7f78c20e236b170ad02df7153b299ae9917345be43871d29f"
url: "https://pub.dev"
source: hosted
version: "3.7.4"
version: "3.8.0"
win32:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: altme
description: AltMe Flutter App
version: 1.20.23+272
version: 1.20.25+274
publish_to: none

environment:
Expand Down

0 comments on commit 765e006

Please sign in to comment.