Skip to content

Commit a53c495

Browse files
authored
Merge pull request #2593 from constantine2nd/develop
Add more debug information
2 parents c6ad98c + b56fd6f commit a53c495

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎obp-api/src/main/scala/code/api/util/APIUtil.scala‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

‎obp-api/src/main/scala/code/api/util/ConsentUtil.scala‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)