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

Update cas proxy signatures #136

Merged
merged 4 commits into from
Sep 13, 2024
Merged

Update cas proxy signatures #136

merged 4 commits into from
Sep 13, 2024

Conversation

dstepe
Copy link
Collaborator

@dstepe dstepe commented Sep 3, 2024

The proxy class added to facilitate testing used method signatures which do match the corresponding methods in the phpCAS class. This lead to issues with the service base argument not supporting all expected value types. The new signatures directly match the phpCAS class.

The phpCAS methods allow an array of URLs to be given for the service base. The previous implementation unnecessarily limited this package to a single string value. The package config file will now explode the value on commas, resulting in an array of possible values.
…onfig

This allows us to pass a simple string into the phpCAS Client and Proxy methods, thereby avoiding autodiscovery. A comma separated list will be detected and split into an array when appropriate.
@dstepe dstepe marked this pull request as ready for review September 11, 2024 23:27
@dstepe dstepe assigned dstepe and subfission and unassigned dstepe Sep 11, 2024
@dstepe
Copy link
Collaborator Author

dstepe commented Sep 11, 2024

@subfission If you could find time to merge and tag this as a minor release, we would appreciate it. The overly strict signatures were a mistake on my part and it's causing issues. Thanks

src/config/config.php Outdated Show resolved Hide resolved
Copy link
Owner

@subfission subfission left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good!

@subfission subfission merged commit 6180e04 into master Sep 13, 2024
12 checks passed
@subfission subfission deleted the update-cas-proxy-signatures branch September 13, 2024 06:00
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.

3 participants