kayleecodes1 / cas-authentication

A CAS authentication library designed to be used as middleware for an Express server.
MIT License
73 stars 77 forks source link

Invalid URL in Ticket Validation #24

Open danielgentes opened 4 years ago

danielgentes commented 4 years ago

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.