Commit f92f2e39 authored by Misagh Moayyed's avatar Misagh Moayyed
Browse files

fixed compile issues

parent 907dd4bb
......@@ -65,13 +65,13 @@ public class OpenIdServletContextListener extends AbstractServletContextInitiali
@Override
protected void initializeServletApplicationContext() {
addControllerToCasServletHandlerMapping(OpenIdConstants.ENDPOINT_OPENID, "openIdProviderController");
addControllerToCasServletHandlerMapping(OpenIdProtocolConstants.ENDPOINT_OPENID, "openIdProviderController");
addServiceTicketUniqueIdGenerator(OpenIdService.class.getCanonicalName(), this.serviceTicketUniqueIdGenerator);
addArgumentExtractor(this.openIdArgumentExtractor);
}
@Override
protected void initializeServletContext(final ServletContextEvent event) {
addEndpointMappingToCasServlet(event, OpenIdConstants.ENDPOINT_OPENID);
addEndpointMappingToCasServlet(event, OpenIdProtocolConstants.ENDPOINT_OPENID);
}
}
......@@ -18,7 +18,7 @@
*/
package org.jasig.cas.support.openid.web.support;
import org.jasig.cas.support.openid.OpenIdConstants;
import org.jasig.cas.support.openid.OpenIdProtocolConstants;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
......@@ -56,8 +56,10 @@ public final class OpenIdPostUrlHandlerMapping extends SimpleUrlHandlerMapping {
@Override
protected Object lookupHandler(final String urlPath, final HttpServletRequest request) throws Exception {
if (HttpMethod.POST.name().equals(request.getMethod())
&& (OpenIdConstants.CHECK_AUTHENTICATION.equals(request.getParameter(OpenIdConstants.OPENID_MODE))
|| OpenIdConstants.ASSOCIATE.equals(request.getParameter(OpenIdConstants.OPENID_MODE)))) {
&& (OpenIdProtocolConstants.CHECK_AUTHENTICATION
.equals(request.getParameter(OpenIdProtocolConstants.OPENID_MODE))
|| OpenIdProtocolConstants.ASSOCIATE
.equals(request.getParameter(OpenIdProtocolConstants.OPENID_MODE)))) {
return super.lookupHandler(urlPath, request);
}
......
......@@ -25,8 +25,6 @@ import org.jasig.cas.support.saml.authentication.principal.GoogleAccountsService
import org.jasig.cas.support.saml.authentication.principal.SamlServiceTests;
import org.jasig.cas.support.saml.util.SamlCompliantUniqueTicketIdGeneratorTests;
import org.jasig.cas.support.saml.web.flow.mdui.SamlMetadataUIParserActionTests;
import org.jasig.cas.support.saml.web.support.GoogleAccountsArgumentExtractorTests;
import org.jasig.cas.support.saml.web.support.SamlArgumentExtractorTests;
import org.jasig.cas.support.saml.web.support.WebUtilTests;
import org.jasig.cas.support.saml.web.view.Saml10FailureResponseViewTests;
import org.jasig.cas.support.saml.web.view.Saml10SuccessResponseViewTests;
......@@ -46,8 +44,6 @@ import org.junit.runners.Suite;
SamlAuthenticationRequestTests.class,
SamlCompliantUniqueTicketIdGeneratorTests.class,
SamlMetadataUIParserActionTests.class,
GoogleAccountsArgumentExtractorTests.class,
SamlArgumentExtractorTests.class,
WebUtilTests.class,
Saml10FailureResponseViewTests.class,
Saml10SuccessResponseViewTests.class
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment