When the parsed_cas_url.pathname is '/' (happens with https://mycas.com and https://mycas.com/ for example) an invalid request URL for the Ticket Validation Request is created ('//' in between). A Fix would be to check parsed_cas_url.pathname for '/' and set it to '' in this case.
When the parsed_cas_url.pathname is '/' (happens with https://mycas.com and https://mycas.com/ for example) an invalid request URL for the Ticket Validation Request is created ('//' in between). A Fix would be to check parsed_cas_url.pathname for '/' and set it to '' in this case.