From 2f59ae408d2ff437e71312c9fb8d2913f9486e9a Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Mon, 23 Dec 2024 15:42:52 +0545 Subject: [PATCH] feat: Hide OIDC4VP switch for 10,18 #3214 --- .../oidc4vc_settngs/widget/oidc4vp_draft_type_widget.dart | 5 ++++- lib/dashboard/profile/models/profile.dart | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/oidc4vp_draft_type_widget.dart b/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/oidc4vp_draft_type_widget.dart index 692988f2c..1147bb5fa 100644 --- a/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/oidc4vp_draft_type_widget.dart +++ b/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/oidc4vp_draft_type_widget.dart @@ -23,7 +23,10 @@ class OIDC4VPDraftTypeWidget extends StatelessWidget { itemBuilder: (context, index) { final draftType = OIDC4VPDraftType.values[index]; - if (draftType == OIDC4VPDraftType.draft23) return Container(); + if (draftType == OIDC4VPDraftType.draft10 || + draftType == OIDC4VPDraftType.draft13 || + draftType == OIDC4VPDraftType.draft18 || + draftType == OIDC4VPDraftType.draft23) return Container(); return Column( children: [ diff --git a/lib/dashboard/profile/models/profile.dart b/lib/dashboard/profile/models/profile.dart index 98de700f5..f3c0a9654 100644 --- a/lib/dashboard/profile/models/profile.dart +++ b/lib/dashboard/profile/models/profile.dart @@ -232,7 +232,7 @@ class ProfileModel extends Equatable { cryptoHolderBinding: true, defaultDid: Parameters.didKeyTypeForDefault, oidc4vciDraft: OIDC4VCIDraftType.draft13, - oidc4vpDraft: OIDC4VPDraftType.draft18, + oidc4vpDraft: OIDC4VPDraftType.draft20, scope: false, securityLevel: false, proofHeader: ProofHeaderType.kid, // N/A @@ -316,7 +316,7 @@ class ProfileModel extends Equatable { cryptoHolderBinding: true, defaultDid: Parameters.didKeyTypeForOwfBaselineProfile, oidc4vciDraft: OIDC4VCIDraftType.draft13, - oidc4vpDraft: OIDC4VPDraftType.draft18, + oidc4vpDraft: OIDC4VPDraftType.draft20, scope: true, securityLevel: true, proofHeader: ProofHeaderType.kid,