Bug 25055

Summary: Domain name is not included in CAS service= string
Product: Koha Reporter: Mostafa <m.ghadam>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Mostafa 2020-04-03 21:15:46 UTC
I have enabled CAS authentication on my koha which is installed at library.domain.com

The cas server is installed at cas.domain.com

On the Login page, Koha generates the following link to login to the CAS server: 

https://cas.domain.com/cas/login?service=%2Fcgi-bin%2Fkoha%2Fopac-user.pl

which is wrong, it should include its base URL in the service for the CAS server to determine the service and redirecting the user back, so the correct URL should be: 

https://cas.domain.com/cas/login?service=https%3a%2f%2flibrary.domain.com/cgi-bin/koha/opac-user.pl
Comment 1 Mostafa 2020-04-03 21:39:03 UTC
FIX : Set OpacBaseURL :

https://bywatersolutions.com/education/koha-url