Skip to content

Commit

Permalink
Revert changes in default and implement change in custom #2414
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Feb 16, 2024
1 parent 1f300d4 commit cfcad1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/dashboard/profile/models/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ class ProfileModel extends Equatable {
displayManageDecentralizedId: true,
customOidc4vcProfile: CustomOidc4VcProfile(
clientAuthentication: ClientAuthentication.clientId,
credentialManifestSupport: false,
credentialManifestSupport: true,
cryptoHolderBinding: true,
defaultDid: Parameters.didKeyTypeForDefault,
oidc4vciDraft: OIDC4VCIDraftType.draft11,
oidc4vpDraft: OIDC4VPDraftType.draft18,
scope: false,
securityLevel: false,
proofHeader: ProofHeaderType.kid,
proofHeader: ProofHeaderType.kid, // N/A
siopv2Draft: SIOPV2DraftType.draft12,
clientType: ClientType.did,
clientId: clientId,
clientSecret: clientSecret,
vcFormatType: VCFormatType.jwtVcJson,
vcFormatType: VCFormatType.ldpVc,
),
),
settingsMenu: SettingsMenu.initial(),
Expand Down
8 changes: 4 additions & 4 deletions lib/dashboard/profile/models/profile_setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -544,15 +544,15 @@ class CustomOidc4VcProfile extends Equatable {
required this.clientType,
required this.clientId,
required this.clientSecret,
this.vcFormatType = VCFormatType.ldpVc,
this.vcFormatType = VCFormatType.jwtVcJson,
this.proofHeader = ProofHeaderType.kid,
});

factory CustomOidc4VcProfile.initial() => CustomOidc4VcProfile(
clientAuthentication: ClientAuthentication.clientId,
credentialManifestSupport: true,
credentialManifestSupport: false,
cryptoHolderBinding: true,
defaultDid: DidKeyType.edDSA,
defaultDid: DidKeyType.p256,
oidc4vciDraft: OIDC4VCIDraftType.draft11,
oidc4vpDraft: OIDC4VPDraftType.draft18,
scope: false,
Expand All @@ -562,7 +562,7 @@ class CustomOidc4VcProfile extends Equatable {
clientType: ClientType.did,
clientId: Parameters.clientId,
clientSecret: randomString(12),
vcFormatType: VCFormatType.ldpVc,
vcFormatType: VCFormatType.jwtVcJson,
);

factory CustomOidc4VcProfile.fromJson(Map<String, dynamic> json) =>
Expand Down

0 comments on commit cfcad1b

Please sign in to comment.