From f6db2292bdeb32b1a20f79d5d07f300fe1fc7a2f Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Wed, 13 Nov 2024 17:52:46 +0545 Subject: [PATCH] feat: Replace title ar with par #3081 --- lib/oidc4vc/get_authorization_uri_for_issuer.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/oidc4vc/get_authorization_uri_for_issuer.dart b/lib/oidc4vc/get_authorization_uri_for_issuer.dart index 38ca2aa0b..1eaf21cf6 100644 --- a/lib/oidc4vc/get_authorization_uri_for_issuer.dart +++ b/lib/oidc4vc/get_authorization_uri_for_issuer.dart @@ -122,9 +122,11 @@ Future 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, ); @@ -138,7 +140,7 @@ Future getAuthorizationUriForIssuer({ } } - if (requirePushedAuthorizationRequests || secureAuthorizedFlow) { + if (isSecure) { final headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'OAuth-Client-Attestation': oAuthClientAttestation,