Skip to content
Merged

Logging #2618

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions obp-api/src/main/scala/code/api/util/APIUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4023,8 +4023,10 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
case Nil =>
Failure(RegulatedEntityNotFoundByCertificate)
case single :: Nil =>
logger.debug(s"Regulated entity by certificate: $single")
// Only one match, proceed to role check
if (single.services.contains(serviceProvider)) {
logger.debug(s"Regulated entity by certificate (single.services: ${single.services}, serviceProvider: $serviceProvider): ")
Full(true)
} else {
Failure(X509ActionIsNotAllowed)
Expand Down