Skip to content

Commit

Permalink
Adding logout to rule them all
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Sep 12, 2024
1 parent e7db43b commit f6be217
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ protected void sso(final String baseURL, final String username, final String pas
// 3. verify that user is now authenticated
assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode());
assertTrue(EntityUtils.toString(response.getEntity()).contains(username));

// 4. logout
get = new HttpGet(CONSOLE_ADDRESS.equals(baseURL)
? baseURL + "wicket/bookmarkable/org.apache.syncope.client.console.pages.Logout"
: baseURL + "wicket/bookmarkable/org.apache.syncope.client.enduser.pages.Logout");
httpclient.execute(get, context);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ protected void sso(final String baseURL, final String username, final String pas
assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode());
assertTrue(EntityUtils.toString(response.getEntity()).contains(username));
}

// 4. logout
get = new HttpGet(CONSOLE_ADDRESS.equals(baseURL)
? baseURL + "wicket/bookmarkable/org.apache.syncope.client.console.pages.Logout"
: baseURL + "wicket/bookmarkable/org.apache.syncope.client.enduser.pages.Logout");
httpclient.execute(get, context);
}

@Override
Expand Down

0 comments on commit f6be217

Please sign in to comment.