This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new e56631e477 [SYNCOPE-1898] Current password required by CAS in some use 
cases for password reset flow (#1155)
e56631e477 is described below

commit e56631e477ea7ad1ed1f4281d6a8031c1b8a63cb
Author: alberto bogi <35602311+alberto-b...@users.noreply.github.com>
AuthorDate: Mon Aug 11 14:52:50 2025 +0200

    [SYNCOPE-1898] Current password required by CAS in some use cases for 
password reset flow (#1155)
---
 .../src/test/java/org/apache/syncope/fit/ui/OIDCC4UIITCase.java         | 2 ++
 .../src/test/java/org/apache/syncope/fit/ui/SAML2SP4UIITCase.java       | 2 ++
 2 files changed, 4 insertions(+)

diff --git 
a/fit/wa-reference/src/test/java/org/apache/syncope/fit/ui/OIDCC4UIITCase.java 
b/fit/wa-reference/src/test/java/org/apache/syncope/fit/ui/OIDCC4UIITCase.java
index 03af6ad87e..276c5681ce 100644
--- 
a/fit/wa-reference/src/test/java/org/apache/syncope/fit/ui/OIDCC4UIITCase.java
+++ 
b/fit/wa-reference/src/test/java/org/apache/syncope/fit/ui/OIDCC4UIITCase.java
@@ -318,6 +318,7 @@ public class OIDCC4UIITCase extends AbstractUIITCase {
         responseBody = EntityUtils.toString(response.getEntity());
 
         // check WA reset password screen
+        assertTrue(responseBody.contains("currentPassword"));
         assertTrue(responseBody.contains("password"));
         assertTrue(responseBody.contains("confirmedPassword"));
         assertTrue(responseBody.contains("execution"));
@@ -328,6 +329,7 @@ public class OIDCC4UIITCase extends AbstractUIITCase {
         List<NameValuePair> form = new ArrayList<>();
         form.add(new BasicNameValuePair("_eventId", "submit"));
         form.add(new BasicNameValuePair("execution", execution));
+        form.add(new BasicNameValuePair("currentPassword", password));
         form.add(new BasicNameValuePair("password", "PasswordChanged123!"));
         form.add(new BasicNameValuePair("confirmedPassword", 
"PasswordChanged123!"));
 
diff --git 
a/fit/wa-reference/src/test/java/org/apache/syncope/fit/ui/SAML2SP4UIITCase.java
 
b/fit/wa-reference/src/test/java/org/apache/syncope/fit/ui/SAML2SP4UIITCase.java
index d2dec2febd..ccee439461 100644
--- 
a/fit/wa-reference/src/test/java/org/apache/syncope/fit/ui/SAML2SP4UIITCase.java
+++ 
b/fit/wa-reference/src/test/java/org/apache/syncope/fit/ui/SAML2SP4UIITCase.java
@@ -355,6 +355,7 @@ public class SAML2SP4UIITCase extends AbstractUIITCase {
             responseBody = EntityUtils.toString(response.getEntity());
 
             // check WA reset password screen
+            assertTrue(responseBody.contains("currentPassword"));
             assertTrue(responseBody.contains("password"));
             assertTrue(responseBody.contains("confirmedPassword"));
             assertTrue(responseBody.contains("execution"));
@@ -366,6 +367,7 @@ public class SAML2SP4UIITCase extends AbstractUIITCase {
         List<NameValuePair> form = new ArrayList<>();
         form.add(new BasicNameValuePair("_eventId", "submit"));
         form.add(new BasicNameValuePair("execution", execution));
+        form.add(new BasicNameValuePair("currentPassword", "Password123!"));
         form.add(new BasicNameValuePair("password", "PasswordChanged123!"));
         form.add(new BasicNameValuePair("confirmedPassword", 
"PasswordChanged123!"));
 

Reply via email to