Cas.properties Modify two places
Tgc.secure=false Warn.cookie.secure=false
casloginview.jsp
<Jsp:directive.includefile= "includes/top.jsp" /><%--<c:if Test= "${not pageContext.request.secure}"> <DivID= "MSG"class= "Errors"> <H2><Spring:messageCode= "Screen.nonsecure.title" /></H2> <P><Spring:messageCode= "Screen.nonsecure.message" /></P> </Div></c:if>--%>
Unregister the above code
Add HTTP service to Httpsandimaps-10000001.json
{ "@class": "Org.jasig.cas.services.RegexRegisteredService", "ServiceId": "^ (https|imaps|http)://.*", "Name": "HTTPS and IMAPS", "id": 10000001, "description": "This service definition authorized all application URLs", "support HTTPS and IMAPS protocols.", "Proxypolicy" : { "@class": "Org.jasig.cas.services.RefuseRegisteredServiceProxyPolicy" }, "EvaluationOrder": 10000, "Usernameattributeprovider" : { "@class": "Org.jasig.cas.services.DefaultRegisteredServiceUsernameProvider" }, "Logouttype": "Back_channel", "Attributereleasepolicy" : { "@class": "Org.jasig.cas.services.ReturnAllowedAttributeReleasePolicy", "Principalattributesrepository" : { "@class": "Org.jasig.cas.authentication.principal.DefaultPrincipalAttributesRepository" }, "Authorizedtoreleasecredentialpassword":false, "Authorizedtoreleaseproxygrantingticket":false }, "Accessstrategy" : { "@class": "Org.jasig.cas.services.DefaultRegisteredServiceAccessStrategy", "Enabled":true, "Ssoenabled":true }}
cas4.2.7 canceling HTTPS