- 🇧🇪Belgium pol Brussels
Hey,
Since 2020, the time I wrote the initial message, a few things has been updated and I wanted to add a few more information here.
First, I released ecphp/cas-lib version 2. The release 2 has been a complete refactoring and rewrite of the library, removing the things that was making the library stateful. Basically, in Version 1, the request had to be injected in the constructor, making the binding in the container a bit more complex. In Version 2, the request is injected in the methods we call from the library (login, logout, serviceValidate, etc etc).
Then, very recently, a Laravel package has been created, it's available at: https://github.com/ecphp/laravel-cas
We have now 2 packages on top of `ecphp/cas-lib`, one for Symfony and one for Laravel.Also, the links in the bottom of the original message are no more available since Heroku is no more free.
I still believe that using an external library to handle the CAS protocol would be a good idea in this project, since it would make things clearer. The Drupal module would act as the glue code between Drupal and `ecphp/cas-lib`, just like the packages for Symfony and Laravel.
Let me know if I can be of any help.
Bye!