File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/java/org/privacyidea Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ public class TestTriggerChallenge
35
35
private PrivacyIDEA privacyIDEA ;
36
36
String serviceAccount = "service" ;
37
37
String servicePass = "pass" ;
38
+ String forwardClientIP = "127.0.0.1" ;
38
39
39
40
@ Before
40
41
public void setup ()
@@ -44,6 +45,7 @@ public void setup()
44
45
privacyIDEA = PrivacyIDEA .newBuilder ("https://127.0.0.1:1080" , "test" )
45
46
.verifySSL (false )
46
47
.serviceAccount (serviceAccount , servicePass )
48
+ .forwardClientIP (forwardClientIP )
47
49
.logger (new PILogImplementation ())
48
50
.realm ("realm" )
49
51
.build ();
@@ -60,7 +62,7 @@ public void testTriggerChallengeSuccess()
60
62
mockServer .when (HttpRequest .request ()
61
63
.withPath (PIConstants .ENDPOINT_TRIGGERCHALLENGE )
62
64
.withMethod ("POST" )
63
- .withBody ("user=testuser&realm=realm" ))
65
+ .withBody ("user=testuser&realm=realm&client=127.0.0.1 " ))
64
66
.respond (HttpResponse .response ().withBody (Utils .triggerChallengeSuccess ()));
65
67
66
68
String username = "testuser" ;
You can’t perform that action at this time.
0 commit comments