Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cas-sso): pass CAS_BASEURL as 5th arg for phpCAS 1.6.0 and newer #1578

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

kheimon
Copy link
Contributor

@kheimon kheimon commented Dec 12, 2023

Status

READY

Description

Intended to resolve #1571 by adding $config['CAS_BASEURL'] as 5th arg when calling $cas->client(), e.g:
$cas->client(CAS_VERSION_2_0, $config['CAS_HOST'], (int)$config['CAS_PORT'], $config['CAS_URI'], $config['CAS_BASEURL']);

Tested against homelabs and reverse proxy/load balancer setup. See comments here for validating CAS_BASEURL setting.

@Lea9250
Copy link
Contributor

Lea9250 commented Dec 18, 2023

Hi @kheimon,

No issues when testing this with a reverse proxy here, did you have the opportunity to test it on your side ?

Regards,
Léa

@kheimon kheimon marked this pull request as ready for review December 18, 2023 15:39
@kheimon
Copy link
Contributor Author

kheimon commented Dec 18, 2023

Hi @Lea9250,

Happy to report that testing was also good on the service I maintain behind a load balancer. If the baseurl was set as "https://ocs.example.com/ocsreports", that will need to be changed just to "https://ocs.example.com" in CAS config.

I've marked this pull request as Ready! :)

@Lea9250
Copy link
Contributor

Lea9250 commented Dec 18, 2023

@kheimon, great :) I'm merging it, thank you for your contribution.

Best regards,
Léa

@Lea9250 Lea9250 merged commit fd7926c into OCSInventory-NG:master Dec 18, 2023
2 of 3 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] CAS authentication doesn't work
2 participants