Bug 25055 - Domain name is not included in CAS service= string
Summary: Domain name is not included in CAS service= string
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-03 21:15 UTC by Mostafa
Modified: 2020-11-30 21:44 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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