Daniel, You can specify a return url with a post parameter.
from our test environment.... 1. redirect URL from Peoplesoft to CAS https://cas.yourschool.edu:8443/cas/login?*method=POST*&service= http://peoplsoft.yourschool.edu/psp/pastg89/?cmd=start 1. ticket check URL from PeopleSoft to CAS -- Pls note that CAS_ticket should be replaced by actual value CAS ticket https://cas.yourschool.edu:8443/cas/validate?ticket=”CAS_ticket”&service= http://peoplesoft.yourschool.edu/psp/pastg89/?cmd=start Not sure if that totally helps, but there you have one piece of it. Our portal library is consultant code, so I don't think I can release it. Kim ~=|=~ Kim Cary Chief Information Security Officer Pepperdine University On Mon, Dec 21, 2009 at 1:18 PM, Knutson, Daniel < [email protected]> wrote: > 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 > > -- 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
