use of org.apereo.cas.configuration.model.core.logout.LogoutProperties in project cas by apereo.
the class LogoutActionTests method logoutForServiceWithNoFollowRedirects.
@Test
public void logoutForServiceWithNoFollowRedirects() throws Exception {
this.request.addParameter(CasProtocolConstants.PARAMETER_SERVICE, TEST_SERVICE_ID);
final LogoutProperties properties = new LogoutProperties();
this.logoutAction = new LogoutAction(getWebApplicationServiceFactory(), this.serviceManager, properties);
final Event event = this.logoutAction.doExecute(this.requestContext);
assertEquals(LogoutAction.FINISH_EVENT, event.getId());
assertNull(this.requestContext.getFlowScope().get("logoutRedirectUrl"));
}
use of org.apereo.cas.configuration.model.core.logout.LogoutProperties in project cas by apereo.
the class LogoutActionTests method verifyLogoutCookie.
@Test
public void verifyLogoutCookie() throws Exception {
final Cookie cookie = new Cookie(COOKIE_TGC_ID, "test");
this.request.setCookies(cookie);
final LogoutProperties properties = new LogoutProperties();
this.logoutAction = new LogoutAction(getWebApplicationServiceFactory(), this.serviceManager, properties);
final Event event = this.logoutAction.doExecute(this.requestContext);
assertEquals(LogoutAction.FINISH_EVENT, event.getId());
}
Aggregations