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

OAuth and update refresh #53

Open
julienhel61250 opened this issue May 7, 2024 · 8 comments
Open

OAuth and update refresh #53

julienhel61250 opened this issue May 7, 2024 · 8 comments

Comments

@julienhel61250
Copy link

Hello,

Thank you for the plugin :)

I'm encountering a refresh error when I modify a user profile field in my authentication manager (Keycloak) linked to my profile via OAuth. For instance, if I change the "Service" field from "IT" to "Accounting," the change is correctly reflected in the Moodle user profile after the user logs out and back in. However, the auto-group is not updated. I need to log out and log back in again for the group to be changed.

Is it possible to execute the user profile modification search function via a CRON task to update the groups?

Bonjour,

Je vous remercie pour le plugin :)

Lorsque je modifie un champ du profil utilisateur dans mon gestionnaire d'authentification (Keycloak) lié à mon profil via oAuth, je rencontre un problème de rafraîchissement. Par exemple, si je change le champ "Service" de "Informatique" à "Comptable", la modification est bien prise en compte dans le profil de l'utilisateur de Moodle après sa déconnexion et sa reconnexion, mais le groupe automatique n'est pas mis à jour. Je suis contraint de me déconnecter et de me reconnecter à nouveau pour que le groupe soit modifié.

Est-il possible, via une tâche CRON, d'exécuter la fonction de recherche des modifications sur le profil utilisateur afin de mettre à jour les groupes ?

@julienhel61250
Copy link
Author

Hello,

Any return ?

@emmarichardson
Copy link
Owner

Sorry, I must have missed the first message. Do you have all the Event Triggers checked in the Auto group settings..?

@julienhel61250
Copy link
Author

Oh thanks :) !

This is option :

image

@emmarichardson
Copy link
Owner

So you had all those checked already and it still isn't updating?

@julienhel61250
Copy link
Author

It updates only on the second connection I change the attribute on keycloack I connect it changes in my profile but not in the auto group, I reconnect the auto group is updated.

@julienhel61250
Copy link
Author

So I'm looking for a way where I could for example synchronize every minute if possible?

@emmarichardson
Copy link
Owner

emmarichardson commented May 24, 2024 via email

@julienhel61250
Copy link
Author

Good morning,

No problem performing a test.

Thanks

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

No branches or pull requests

2 participants