Merge pull request #2593 from constantine2nd/develop

Add more debug information
This commit is contained in:
Simon Redfern 2025-08-07 17:24:31 +02:00 committed by GitHub
commit a53c495a69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -3020,6 +3020,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
// Identify consumer via certificate
val consumerByCertificate = Consent.getCurrentConsumerViaTppSignatureCertOrMtls(callContext = cc)
logger.debug(s"consumerByCertificate: $consumerByCertificate")
val method = APIUtil.getPropsValue(nameOfProperty = "consumer_validation_method_for_consent", defaultValue = "CONSUMER_CERTIFICATE")
val consumerByConsumerKey = getConsumerKey(reqHeaders) match {
case Some(consumerKey) if method == "CONSUMER_KEY_VALUE" =>
@ -3027,6 +3028,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
case None =>
Empty
}
logger.debug(s"consumerByConsumerKey: $consumerByConsumerKey")
val res =
if (authHeadersWithEmptyValues.nonEmpty) { // Check Authorization Headers Empty Values

View File

@ -238,6 +238,7 @@ object Consent extends MdcLoggable {
private def tppIsConsentHolder(consumerIdFromConsent: String, callContext: CallContext): Boolean = {
val consumerIdFromCurrentCall = callContext.consumer.map(_.consumerId.get).orNull
logger.debug(s"consumerIdFromConsent == consumerIdFromCurrentCall ($consumerIdFromConsent == $consumerIdFromCurrentCall)")
consumerIdFromConsent == consumerIdFromCurrentCall
}