Skip to content

Commit

Permalink
feat: Solved compliance test parsing issue #2047
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Oct 30, 2023
1 parent b97b56c commit cd3d9fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/app/shared/helper_functions/helper_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1052,14 +1052,14 @@ ${openidConfigurationResponse != null ? const JsonEncoder.withIndent(' ').conve
String getFormattedStringOIDC4VCIAuthorizedCodeFlow({
required String url,
Map<String, dynamic>? statePayload,
Map<String, dynamic>? codeForAuthorisedFlowPayload,
dynamic codeForAuthorisedFlow,
}) {
return '''
<b>SCHEME :</b> ${getSchemeFromUrl(url)}\n
<b>STATE :</b>
${statePayload != null ? const JsonEncoder.withIndent(' ').convert(statePayload) : 'None'}\n
<b>CODE :</b>
${codeForAuthorisedFlowPayload != null ? const JsonEncoder.withIndent(' ').convert(codeForAuthorisedFlowPayload) : 'None'}
$codeForAuthorisedFlow
''';
}

Expand Down
5 changes: 1 addition & 4 deletions lib/splash/bloclisteners/blocklisteners.dart
Original file line number Diff line number Diff line change
Expand Up @@ -468,13 +468,10 @@ final qrCodeBlocListener = BlocListener<QRCodeScanCubit, QRCodeScanState>(

/// if dev mode is ON show some dialog to show data
if (profileCubit.state.model.isDeveloperMode) {
final codeForAuthorisedFlowPayload =
JWTDecode().parseJwt(codeForAuthorisedFlow);

final String formattedData =
getFormattedStringOIDC4VCIAuthorizedCodeFlow(
url: state.uri.toString(),
codeForAuthorisedFlowPayload: codeForAuthorisedFlowPayload,
codeForAuthorisedFlow: codeForAuthorisedFlow,
statePayload: statePayload,
);

Expand Down

0 comments on commit cd3d9fe

Please sign in to comment.