Skip to content

Commit

Permalink
feat: Wording screen OIDC4VC settings #3122
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Nov 28, 2024
1 parent b620030 commit ddc863d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -43,7 +42,7 @@ class Oidc4vcSettingMenuView extends StatelessWidget {
const ScopeParameterWidget(),
const ClientAuthenticationWidget(),
const ClientTypeWidget(),
const ConfidentialClientWidget(),
const PreRegisteredWidget(),
const VCFormatWidget(),
const ProofTypeWidget(),
const ProofHeaderWidget(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/oidc4vc/lib/src/client_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extension ClientTypeX on ClientType {
case ClientType.did:
return 'DID';
case ClientType.confidential:
return 'Confidential Client';
return 'Pre-registered';
}
}
}
2 changes: 1 addition & 1 deletion packages/oidc4vc/test/src/client_type_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
}

0 comments on commit ddc863d

Please sign in to comment.