From ddc863de98766cc677ab6c96d7c63c06997ac788 Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Thu, 28 Nov 2024 17:10:00 +0545 Subject: [PATCH] feat: Wording screen OIDC4VC settings #3122 --- .../ssi/oidc4vc_settngs/view/oidc4vc_settings_menu.dart | 3 +-- .../ssi/oidc4vc_settngs/widget/client_type_widget.dart | 2 +- ...ential_client_widget.dart => pre_registered_widget.dart} | 6 +++--- lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/widget.dart | 2 +- packages/oidc4vc/lib/src/client_type.dart | 2 +- packages/oidc4vc/test/src/client_type_test.dart | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) rename lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/{confidential_client_widget.dart => pre_registered_widget.dart} (98%) diff --git a/lib/dashboard/drawer/ssi/oidc4vc_settngs/view/oidc4vc_settings_menu.dart b/lib/dashboard/drawer/ssi/oidc4vc_settngs/view/oidc4vc_settings_menu.dart index fc02edc3d..5ff22ba3d 100644 --- a/lib/dashboard/drawer/ssi/oidc4vc_settngs/view/oidc4vc_settings_menu.dart +++ b/lib/dashboard/drawer/ssi/oidc4vc_settngs/view/oidc4vc_settings_menu.dart @@ -2,7 +2,6 @@ import 'dart:convert'; import 'package:altme/app/app.dart'; import 'package:altme/dashboard/dashboard.dart'; -import 'package:altme/dashboard/drawer/ssi/verifiers_metadata/view/verifiers_metadata_page.dart'; import 'package:flutter/material.dart'; class Oidc4vcSettingMenu extends StatelessWidget { @@ -43,7 +42,7 @@ class Oidc4vcSettingMenuView extends StatelessWidget { const ScopeParameterWidget(), const ClientAuthenticationWidget(), const ClientTypeWidget(), - const ConfidentialClientWidget(), + const PreRegisteredWidget(), const VCFormatWidget(), const ProofTypeWidget(), const ProofHeaderWidget(), diff --git a/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/client_type_widget.dart b/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/client_type_widget.dart index b13edcedd..6009244ea 100644 --- a/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/client_type_widget.dart +++ b/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/client_type_widget.dart @@ -14,7 +14,7 @@ class ClientTypeWidget extends StatelessWidget { builder: (context, state) { return OptionContainer( title: 'Wallet Client_id Scheme', - subtitle: 'Confidential Client', + subtitle: 'Pre-registered', body: ListView.builder( itemCount: ClientType.values.length, shrinkWrap: true, diff --git a/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/confidential_client_widget.dart b/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/pre_registered_widget.dart similarity index 98% rename from lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/confidential_client_widget.dart rename to lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/pre_registered_widget.dart index 90e6aadf4..f6c5836ee 100644 --- a/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/confidential_client_widget.dart +++ b/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/pre_registered_widget.dart @@ -4,8 +4,8 @@ import 'package:altme/dashboard/dashboard.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; -class ConfidentialClientWidget extends StatelessWidget { - const ConfidentialClientWidget({super.key}); +class PreRegisteredWidget extends StatelessWidget { + const PreRegisteredWidget({super.key}); @override Widget build(BuildContext context) { @@ -28,7 +28,7 @@ class ConfidentialClientWidget extends StatelessWidget { final clientSecret = state.model.profileSetting .selfSovereignIdentityOptions.customOidc4vcProfile.clientSecret; return OptionContainer( - title: 'Confidential Client', + title: 'Pre-registered', body: Padding( padding: const EdgeInsets.symmetric(horizontal: 10), child: Column( diff --git a/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/widget.dart b/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/widget.dart index fa5ad832f..3e9eee7ef 100644 --- a/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/widget.dart +++ b/lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/widget.dart @@ -1,11 +1,11 @@ export 'client_authentication_widget.dart'; export 'client_type_widget.dart'; -export 'confidential_client_widget.dart'; export 'cryptograhic_holder_binding.dart'; export 'did_key_type_widget.dart'; export 'dpop_support_widget.dart'; export 'draft_type_widget.dart'; export 'option_container.dart'; +export 'pre_registered_widget.dart'; export 'proof_header_widget.dart'; export 'proof_type_widget.dart'; export 'push_authorization_request.dart'; diff --git a/packages/oidc4vc/lib/src/client_type.dart b/packages/oidc4vc/lib/src/client_type.dart index f313a04fc..59d520859 100644 --- a/packages/oidc4vc/lib/src/client_type.dart +++ b/packages/oidc4vc/lib/src/client_type.dart @@ -17,7 +17,7 @@ extension ClientTypeX on ClientType { case ClientType.did: return 'DID'; case ClientType.confidential: - return 'Confidential Client'; + return 'Pre-registered'; } } } diff --git a/packages/oidc4vc/test/src/client_type_test.dart b/packages/oidc4vc/test/src/client_type_test.dart index dd5de9522..e3056d3d9 100644 --- a/packages/oidc4vc/test/src/client_type_test.dart +++ b/packages/oidc4vc/test/src/client_type_test.dart @@ -6,7 +6,7 @@ void main() { test('getTitle', () { expect(ClientType.p256JWKThumprint.getTitle, 'P-256 JWK Thumbprint'); expect(ClientType.did.getTitle, 'DID'); - expect(ClientType.confidential.getTitle, 'Confidential Client'); + expect(ClientType.confidential.getTitle, 'Pre-registered'); }); }); }