Skip to content

Commit

Permalink
feat: Replace title ar with par #3081
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Nov 13, 2024
1 parent 36f36b4 commit f6db229
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/oidc4vc/get_authorization_uri_for_issuer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ Future<Uri?> getAuthorizationUriForIssuer({
final requirePushedAuthorizationRequests =
openIdConfiguration.requirePushedAuthorizationRequests;

final isSecure = requirePushedAuthorizationRequests || secureAuthorizedFlow;

if (profileCubit.state.model.isDeveloperMode) {
final value = await qrCodeScanCubit.showDataBeforeSending(
title: 'AUTHORIZATION REQUEST',
title: isSecure ? 'PUSH AUTHORIZATION REQUEST' : 'AUTHORIZATION REQUEST',
data: authorizationRequestParemeters,
);

Expand All @@ -138,7 +140,7 @@ Future<Uri?> getAuthorizationUriForIssuer({
}
}

if (requirePushedAuthorizationRequests || secureAuthorizedFlow) {
if (isSecure) {
final headers = <String, dynamic>{
'Content-Type': 'application/x-www-form-urlencoded',
'OAuth-Client-Attestation': oAuthClientAttestation,
Expand Down

0 comments on commit f6db229

Please sign in to comment.