Skip to content

Commit

Permalink
working test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsearls committed Jan 13, 2025
1 parent d3a94b2 commit 0b8d06f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void testRPInitiatedLogout() throws Exception {
@Test
public void testRPInitiatedLogoutWithPostLogoutUri() throws Exception {
OidcClientConfiguration oidcClientConfiguration = getClientConfig();
oidcClientConfiguration.setPostLogoutPath("http://localhost/8080/post-logout");
oidcClientConfiguration.setPostLogoutPath(getClientUrl()+"/post-logout");
configureDispatcher(oidcClientConfiguration, new Dispatcher() {
@Override
public MockResponse dispatch(RecordedRequest request) {
Expand All @@ -100,7 +100,7 @@ public MockResponse dispatch(RecordedRequest request) {
assertTrue(page.getWebResponse().getContentAsString().contains("Welcome, authenticated user"));

assertUserAuthenticated();
HtmlPage continueLogout = webClient.getPage(getClientConfig().getLogoutPath());
HtmlPage continueLogout = webClient.getPage(getClientUrl() + getClientConfig().getLogoutPath());
page = continueLogout.getElementById("continue").click();
assertUserNotAuthenticated();
assertTrue(page.getWebResponse().getContentAsString().contains("you are logged out from app"));
Expand Down

0 comments on commit 0b8d06f

Please sign in to comment.