use of org.apereo.cas.web.view.DynamicHtmlView in project cas by apereo.
the class DefaultDelegatedAuthenticationNavigationControllerTests method verifyRedirectByAttr.
@Test
public void verifyRedirectByAttr() {
val request = new MockHttpServletRequest();
request.setAttribute(Pac4jConstants.DEFAULT_CLIENT_NAME_PARAMETER, "SAML2Client");
val response = new MockHttpServletResponse();
assertTrue(controller.redirectToProvider(request, response) instanceof DynamicHtmlView);
}
use of org.apereo.cas.web.view.DynamicHtmlView in project cas by apereo.
the class DefaultDelegatedAuthenticationNavigationControllerTests method verifyRedirectByAttrForceAuth.
@Test
public void verifyRedirectByAttrForceAuth() {
val request = new MockHttpServletRequest();
request.setAttribute(Pac4jConstants.DEFAULT_CLIENT_NAME_PARAMETER, "SAML2Client");
request.setParameter(RedirectionActionBuilder.ATTRIBUTE_FORCE_AUTHN, "true");
val response = new MockHttpServletResponse();
assertTrue(controller.redirectToProvider(request, response) instanceof DynamicHtmlView);
}
Aggregations