Alain-Aymerick FRANCOIS
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Cassify] Patch to start PHP session only when neededJust to finish. Have you tested your patch with Gateway mode?
=> User already connected from another service and automatic CAS connection when coming to WordPress.
Forum: Plugins
In reply to: [WP Cassify] Patch to start PHP session only when neededHi,
Hello,
I’m sorry but I have a lot of work at the moment. I haven’t had time to update the plugin. Nevertheless, I’m very interested in integrating your patch into the plugin. About starting a session only if necessary.
Can you send me a patch of all the modified files, indicating exactly where the changes have been made?
I’d be happy to incorporate your work to help the plugin progress.I’ll mention your name/pseudo in the README file.Best regards.
Forum: Plugins
In reply to: [WP Cassify] Email address change notificationsHi,
I certify that this notification is not sent by the plugin. You must look elsewhere.
Best regards
Forum: Plugins
In reply to: [WP Cassify] Spurious warnings when running WP-CLI commandsHi,
Can you tell me which WP-Cli command you are running ?
Best regards
Forum: Plugins
In reply to: [WP Cassify] log non-cas usersHi,
Take a look at this tutorials : https://wpcassify.wordpress.com/getting-started/.
Go to chapter BYPASS CAS AUTHENTICATION. There is a login form template with bypass parameters.
Best regards.
Forum: Plugins
In reply to: [WP Cassify] wp_get_sites is deprecated; use get_sites()Hi,
I’ve fix this in trunk.
https://plugins.svn.wordpress.org/wp-cassify/trunk/
Before I push a new version, could you confirm that the trunk is compatible with PHP8 ? I’ve already done some tests at the request of the community but I would like to have some feedback.
As some people asked me for a migration plan to PHP8. But nobody answers my test requests and help me to make some tests.
Best regards.
Forum: Plugins
In reply to: [WP Cassify] PHP 8 Deprecated (ordering of required/optional parameters)Hi,
Sorry, i don’t have much free time at the moment. I’ve done some changes and tested the plugin under Docker php:8.1.0-fpm. I’have fixed somes bugs due to PHP8 changes.
Everything seems to work but i’m not sure.So, before i push the new release, I invite you and all volunteers to test the trunk branch which contains the latest changes.
https://plugins.trac.wordpress.org/browser/wp-cassify/trunk
Best regards.
Forum: Plugins
In reply to: [WP Cassify] PHP 8 supportHi,
Sorry, i don’t have much free time at the moment. I’ve done some changes and tested the plugin under Docker php:8.1.0-fpm. I’have fixed somes bugs due to PHP8 changes.
Everything seems to work but i’m not sure.So, before i push the new release, I invite you and all volunteers to test the trunk branch which contains the latest changes.
https://plugins.trac.wordpress.org/browser/wp-cassify/trunk
Best regards.
Forum: Plugins
In reply to: [WP Cassify] Sessions initialized for all usersHi Damien,
Thank you for your explanation. But, i’m not sure. But i think i needs to keep early PHP Session initialization to process CAS Client gateway mode. (=> Automatic login if user has already authenticated by CAS). And to implement this mecanism, i’ve ported phpCas implementation based on PHP Session.
For the moment, I have not found any other way to implement this feature.Take a look at this and you will understand that i said.
https://github.com/apereo/phpCAS/blob/master/source/CAS/Client.php#L1515Best regards.
Forum: Plugins
In reply to: [WP Cassify] Error 500 WP 5.8.1 PHP 7.4Hi,
I’ve tested with Config : WP 5.8.1 / PHP 7.4 in Docker environment. I couldn’t reproduce the bug.
So, i’m not sure that WP Cassify is the source of the bug. It is a very lightweight plugin.
Try to increase your config (RAM/CPU/SSD) or try to deactivate other plugins before optimizing plugin.
In future release, i can try to refactor loading method datas of the admin panel (by grouping wp_get_option with one pure SQL query) but i’m not sure that is a priority because admin panel is not often loaded as frontend.I think it is very likely that your VPS configuration is too short for your WordPress site (your database server configuration is not powerful enough).
Best regards.
- This reply was modified 4 years, 6 months ago by Alain-Aymerick FRANCOIS.
Forum: Plugins
In reply to: [WP Cassify] Users Role Settings query with multiple same attributesBonjour,
Désolé pour la réponse tardive. Si le plugin ne répond pas exactement à ce que tu cherches à faire nativement, tu peux utiliser les hooks et les filtres personnalisés mis à disposition par ce dernier. Soit à partir d’un fichier function.php soit à partir d’un plugin chargé après WP Cassify.
Jette un coup d’oeil à la documentation en ligne que j’ai rédigé ici:
Grâce aux customs hooks et aux customs filters tu pourras intéragir comme bon te semble avec le plugin. Soit en modifiant à la volée la réponse xml du serveur CAS afin qu’il puisse être traité via le moteur de règles fourni avec le plugin en éliminant tous les attributs cas:isMemberOf qui ne contiennent pas gm_admin de manière à n’en laisser qu’un seul dans la réponse xml.
Soit en agissant directement via des hooks mais pour l’instant, je ne suis pas sur que ce soit possible.Tu me donnes une idée, il faudrait que j’ajoute un paramètre au hook wp_cassify_grab_service_ticket_roles_to_push (https://plugins.trac.wordpress.org/browser/wp-cassify/trunk/classes/wp_cassify_plugin.php#L533) afin de pouvoir modifier les rôles en fonction des attributs cas renvoyés par le serveur.
Modifie le fichier du plugin comme ceci, si tu veux pouvoir te servir du filtre en attendant une nouvelle mise à jour.
$roles_to_push = apply_filters( 'wp_cassify_grab_service_ticket_roles_to_push', $roles_to_push, $cas_user_datas );Dans ton fichier functions.php :
// The filter callback function. function filtre_roles( $roles, $cas_user_datas ) { // Make what you want here... return $roles; } add_filter( 'wp_cassify_grab_service_ticket_roles_to_push', 'filtre_roles', 10, 1 );Bonne journée.
Forum: Plugins
In reply to: [WP Cassify] Error Operator -INHi,
Thanks for your feedback. Please upgrade to last release 2.2.7. Unless I’m mistaken, the bug should be solved.
Best regards.
Forum: Plugins
In reply to: [WP Cassify] Error Operator -INHi,
I’m sorry.
I will patch the plugin in few days because i’m busy now. I will patch in new release on Friday.
But i have a quick solution for you :
Replace maybe_serialize function in wp_cassify_rule_solver.php by “serialize” like this (line 103):
wp_cassify_rule_operand = maybe_serialize( $this->cas_user_datas[ $matches_cas_variable_groups[1]
Best regards.`
Forum: Plugins
In reply to: [WP Cassify] Need address to developerHi,
I answered you by mail. I’d be very proud to wear your college shirt.
🙂Best regards.
PS: For the others who would like to send me a T-shirt of their University, contact me by email at this address : aa_francois@yahoo.fr
Take care of yourself and your family because of Covid19.
Forum: Plugins
In reply to: [WP Cassify] 2.2.2 and 2.2.3 broke my siteOk, so i close ticket. Very sorry.
It’s because i’ve modified lots of code.
It’s great release with lots of new interesting features like SLO support.Best regards.