Skip to content

Commit

Permalink
feat: Hide OIDC4VP switch for 10,18 #3214
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Dec 23, 2024
1 parent dea7bdf commit 2f59ae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
4 changes: 2 additions & 2 deletions lib/dashboard/profile/models/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2f59ae4

Please sign in to comment.