-
Notifications
You must be signed in to change notification settings - Fork 75
Conversation
By moving the calls to phpCAS static methods and the use of PHP built in functions to separate classes, we can make the CasManager class itself testable.
Enable tests
Add Laravel 11.x support
@m0stwan1ed and @ipimpat Thank you both for your willingness to provide updates for Laravel 11 compatibility. The change to add 11 has been merged to the The obvious need for testing is ensuring no regressions under Laravel 11. I have run it a simple app and see no issue. The more nuanced issue is around logging. When the Given those considerations, I am currently redesigning the log configuration to provide more control. I expect the options will be:
I'd be very interested in other perspectives on this, in addition to testing the changes before release. |
Implement new log options
I believe the log options are now in a place I'm willing to move forward with. Please review the new config options (you will need to add this to your existing
The default behavior is to not use any logger. I believe that is functionally consistent with the previous behavior. The new options allow a simple way to use the Laravel logger or to log to a file of your choice. It is also possible to inject a log factory implementation and have full control of the instance. I plan to spend time on the wiki pages next. There are a number of places they are outdated in regard not only to this package but to Laravel current practices. That will not prohibit making a new release soon, but I don't want the docs too far behind. I believe this should be a major release given the internal changes to improve testing and the change in log behaviors. |
This will apply the default configuration without requiring the config file to be published.
The wiki has been updated and some final tweaks added to the |
@dstepe Thanks for your comments and work on an upgrade to Laravel 11.x compatibility. I've tested the I have a question about this part - |
Thanks for help testing. The default value for the second argument of the I believe that all configuration can be done without publishing the |
@subfission I think you may need to add a review to this PR before I can merge it. I am unable to merge due a review being required and I can't review (probably due to having commits on the branch). I am unable to override the need for a review with my current role as well. |
@subfission I know you are busy, but hoping to get your assistance on this release, or giving me write access so I can complete it. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks adequate, although these changes expanded the codebase quite a bit, albeit still within reason.
The logging was typically & intentionally done to another file, rather than being part of the Laravel ecosystem. This helped differentiate a production vs development environment as you do not want to debug CAS auth in prod, nor pollute the logs.
Additionally, we may get to a point where Apereo Enterprise CAS is no longer adequate. I have already received complaints around their codebase. If possible next release may provide more flexibility/portability around the underlying CAS auth solution.
Tagging for new minor release |
Refactor core classes to support testing. Add support for Laravel 11.