microsoft / o365-moodle

Office 365 and Azure Active Directory plugins for Moodle
GNU General Public License v3.0
182 stars 136 forks source link

SSO Keycloak session for Moodle LMS is not maintained #2636

Open BraveEvidence opened 1 month ago

BraveEvidence commented 1 month ago

I have a website in which I have integrated keycloak sign in, I have also integrated keycloak sign in for moodle using this plugin. Suppose I sign in my website using keycloak and then open moodle I had to sign in again, the keycloak session is not maintained. Suppose my website url is https://portal-uat.mycomapnyname.vn/ and my Moodle LMS is at http://lms.mycompanyname.vn, is it because they are located at different subdomains, do I need to fix it from AWS side where both my apps are deployed or is there something else wrong which I can fix it from the admin keycloak portal

weilai-irl commented 1 month ago

Hi @BraveEvidence

Please consider these two settings in Moodle:

Note the first setting is part of Moodle core, while the second one is part of the auth_oidc plugin. You may want to try out different combinations of these settings to achieve your desired user experience.

There is actually a third setting - Silent Login Mode (silentloginmode) also on the "Other options" page - which would try to perform silent login. Please read the setting description for details. Note this setting has only be tested against Microsoft Entra ID IdP, and not on Keycloak, so please use with care.

Regards, Lai