File tree Expand file tree Collapse file tree
obp-api/src/main/scala/code/api/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3020,13 +3020,15 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
30203020
30213021 // Identify consumer via certificate
30223022 val consumerByCertificate = Consent .getCurrentConsumerViaTppSignatureCertOrMtls(callContext = cc)
3023+ logger.debug(s " consumerByCertificate: $consumerByCertificate" )
30233024 val method = APIUtil .getPropsValue(nameOfProperty = " consumer_validation_method_for_consent" , defaultValue = " CONSUMER_CERTIFICATE" )
30243025 val consumerByConsumerKey = getConsumerKey(reqHeaders) match {
30253026 case Some (consumerKey) if method == " CONSUMER_KEY_VALUE" =>
30263027 Consumers .consumers.vend.getConsumerByConsumerKey(consumerKey)
30273028 case None =>
30283029 Empty
30293030 }
3031+ logger.debug(s " consumerByConsumerKey: $consumerByConsumerKey" )
30303032
30313033 val res =
30323034 if (authHeadersWithEmptyValues.nonEmpty) { // Check Authorization Headers Empty Values
Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ object Consent extends MdcLoggable {
238238
239239 private def tppIsConsentHolder (consumerIdFromConsent : String , callContext : CallContext ): Boolean = {
240240 val consumerIdFromCurrentCall = callContext.consumer.map(_.consumerId.get).orNull
241+ logger.debug(s " consumerIdFromConsent == consumerIdFromCurrentCall ( $consumerIdFromConsent == $consumerIdFromCurrentCall) " )
241242 consumerIdFromConsent == consumerIdFromCurrentCall
242243 }
243244
You can’t perform that action at this time.
0 commit comments