From edc9ed88f3c72aca1d68dbf379a4f0452dce01ef Mon Sep 17 00:00:00 2001 From: Simon Redfern Date: Fri, 5 Jan 2024 14:27:18 +0100 Subject: [PATCH 1/2] Adding more debug around UserLockedChecker --- obp-api/src/main/scala/bootstrap/liftweb/Boot.scala | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/obp-api/src/main/scala/bootstrap/liftweb/Boot.scala b/obp-api/src/main/scala/bootstrap/liftweb/Boot.scala index 286662e310..b4d0725bec 100644 --- a/obp-api/src/main/scala/bootstrap/liftweb/Boot.scala +++ b/obp-api/src/main/scala/bootstrap/liftweb/Boot.scala @@ -756,14 +756,17 @@ class Boot extends MdcLoggable { def onBeginServicing(session: LiftSession, req: Req): Unit = { logger.debug(s"Hello from UsernameLockedChecker.onBeginServicing") checkIsLocked() + logger.debug(s"Bye from UsernameLockedChecker.onBeginServicing") } def onSessionActivate(session: LiftSession): Unit = { logger.debug(s"Hello from UsernameLockedChecker.onSessionActivate") checkIsLocked() + logger.debug(s"Bye from UsernameLockedChecker.onSessionActivate") } def onSessionPassivate(session: LiftSession): Unit = { logger.debug(s"Hello from UsernameLockedChecker.onSessionPassivate") checkIsLocked() + logger.debug(s"Bye from UsernameLockedChecker.onSessionPassivate") } private def checkIsLocked(): Unit = { AuthUser.currentUser match { @@ -771,10 +774,12 @@ class Boot extends MdcLoggable { LoginAttempt.userIsLocked(localIdentityProvider, user.username.get) match { case true => AuthUser.logoutCurrentUser - logger.warn(s"User ${user.username.get} has been logged out due to it has been locked.") + logger.warn(s"checkIsLocked says: User ${user.username.get} has been logged out because it is locked.") case false => // Do nothing + logger.debug(s"checkIsLocked says: User ${user.username.get} is not locked.") } - case _ => // Do nothing + case _ => // No user found + logger.debug(s"checkIsLocked says: No User Found.") } } } From de9e4efc722e2305357e0afce8d2edab709952d1 Mon Sep 17 00:00:00 2001 From: Simon Redfern Date: Fri, 5 Jan 2024 16:10:17 +0100 Subject: [PATCH 2/2] Adding a note about web.xml in sample.props.template --- obp-api/src/main/resources/props/sample.props.template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/obp-api/src/main/resources/props/sample.props.template b/obp-api/src/main/resources/props/sample.props.template index 1468010a14..1a8952ea31 100644 --- a/obp-api/src/main/resources/props/sample.props.template +++ b/obp-api/src/main/resources/props/sample.props.template @@ -1290,4 +1290,7 @@ validate_iban=false # This returns Regulated Entities # sample props regulated_entities = [{"certificate_authority_ca_owner_id":"CY_CBC","entity_certificate_public_key":"-----BEGIN CERTIFICATE-----MIICsjCCAZqgAwIBAgIGAYwQ62R0MA0GCSqGSIb3DQEBCwUAMBoxGDAWBgNVBAMMD2FwcC5leGFtcGxlLmNvbTAeFw0yMzExMjcxMzE1MTFaFw0yNTExMjYxMzE1MTFaMBoxGDAWBgNVBAMMD2FwcC5leGFtcGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK9WIodZHWzKyCcf9YfWEhPURbfO6zKuMqzHN27GdqHsVVEGxP4F/J4mso+0ENcRr6ur4u81iREaVdCc40rHDHVJNEtniD8Icbz7tcsqAewIVhc/q6WXGqImJpCq7hA0m247dDsaZT0lb/MVBiMoJxDEmAE/GYYnWTEn84R35WhJsMvuQ7QmLvNg6RkChY6POCT/YKe9NKwa1NqI1U+oA5RFzAaFtytvZCE3jtp+aR0brL7qaGfgxm6B7dEpGyhg0NcVCV7xMQNq2JxZTVdAr6lcsRGaAFulakmW3aNnmK+L35Wu8uW+OxNxwUuC6f3b4FVBa276FMuUTRfu7gc+k6kCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAAU5CjEyAoyTn7PgFpQD48ZNPuUsEQ19gzYgJvHMzFIoZ7jKBodjO5mCzWBcR7A4mpeAsdyiNBl2sTiZscSnNqxk61jVzP5Ba1D7XtOjjr7+3iqowrThj6BY40QqhYh/6BSY9fDzVZQiHnvlo6ZUM5kUK6OavZOovKlp5DIl5sGqoP0qAJnpQ4nhB2WVVsKfPlOXc+2KSsbJ23g9l8zaTMr+X0umlvfEKqyEl1Fa2L1dO0y/KFQ+ILmxcZLpRdq1hRAjd0quq9qGC8ucXhRWDgM4hslVpau0da68g0aItWNez3mc5lB82b3dcZpFMzO41bgw7gvw10AvvTfQDqEYIuQ==-----END CERTIFICATE-----","entity_code":"PSD_PICY_CBC!12345","entity_type":"PSD_PI","entity_address":"EXAMPLE COMPANY LTD, 5 SOME STREET","entity_town_city":"SOME CITY","entity_post_code":"1060","entity_country":"CY","entity_web_site":"www.example.com","services":[{"CY":["PS_010","PS_020","PS_03C","PS_04C"]}]}] -regulated_entities = [] \ No newline at end of file +regulated_entities = [] + + +# Note: For secure and http only settings for cookies see resources/web.xml which is mentioned in the README.md \ No newline at end of file