We're trying to utilize the old instructions from Cal Poly on CASifying 
PeopleSoft.  Part of their instructions state that we need to modify the 
goService.jsp to send a form post to PeopleSoft because that's what PeopleSoft 
is expecting.  Unfortunately CAS 3.2.1 does not use the goServices.jsp anymore. 
 Has anyone else experience this obstacle and if so, could you please point me 
in the right direction as to where to look next.
Thank you,
Dan






goServicePsft.jsp
<%
/* PeopleSoft web accepted vanilla CAS redirects ~81806_070, when the login 
page begin to require that at least one parameter be POST'd in order to 
consider the request a login attempt. All GET requests appear to be treated 
only as "display login form" actions. */

String serviceId = (String) request.getAttribute("serviceId");                  
 //Service ID
String token = (String) request.getAttribute("token");                          
     //Token
String service = null;                                                          
                      //Service string
if (serviceId.indexOf('?') == -1)                                               
                //If the string doesn't contain a '?'
service = serviceId + "?ticket=" + token;                                  
//add a '?' and the ticket variable
else service = serviceId + "&ticket=" + token;                         //add a 
'&' and the ticket variable

service = edu.yale.its.tp.cas.util.StringUtil.substituteAll(service, "\n", ""); 
              //Format the string
service = edu.yale.its.tp.cas.util.StringUtil.substituteAll(service, "\r", ""); 
              //Format the string
service = edu.yale.its.tp.cas.util.StringUtil.substituteAll(service, "\"", ""); 
              //Format the string
%>

<html>
<head><title>HCC Web Login</title>
<script language="JavaScript">
<!--
//Get cookie routine by Shelley Powers
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
// if cookie exists
if (offset != -1) {
returnvalue="1"
}
}
return returnvalue;
}
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
document.cookie = curCookie;
}
// Check for the PS Signon cookie - if it does not exist set the cookie
value = get_cookie("SignOnDefault");
if (value == null || value.length == 0) {
var nextyear = new Date();
nextyear.setFullYear(nextyear.getFullYear() + 1);
setCookie("SignOnDefault", "", nextyear, "/", ".heartland.edu", "");
}
-->
</script>

</head>







________________________________
The information contained in this communication is confidential. This 
communication is the property of Heartland Community College and is intended 
only for use by the recipient identified. If you have received this 
communication in error, please immediately notify the sender and delete the 
original communication. Any distribution or copying of this message without the 
College's prior consent is prohibited.

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to