mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 12:56:51 +00:00
Merge pull request #2593 from constantine2nd/develop
Add more debug information
This commit is contained in:
commit
a53c495a69
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user