-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
3.11.7
-
MOODLE_311_STABLE
-
feature/oauth2-logout
-
I want to be able to use moodle with OpenId Connect/ OAuth2, using keycloak as the identity provider.
Everything works well with the built-in OAuth2 plugin, except that logging out of moodle doesn't log the users out using the OAuth2 server.
This is a problem because my users use a shared computer, they log in using their account, and when they log out, they only log out of moodle. The next user would just click on the SSO button and gets authenticated as the previous user, without being prompted a password.
My proposal
- Optional : Add a checkbox on the OAuth IdentityProvider configuration page to enable "federated logout". The new behavior would be enabled only if checked.
- Take into account the end_session_endpoint. On logout, the user is redirected to this page, with the following parameters:
-
post_logout_redirect_uri : The URL where the user will be redirected after logout.- id_token_hint: The ID token of the user (this is required by keycloak at least)
- state: If there is something to pass...
Basically, what I want is described here : https://openid.net/specs/openid-connect-rpinitiated-1_0.html