-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.6, 4.2.4, 4.3.1
-
MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
-
auth_user_startpage_preferences
A Moodle user can specify its start page within his or her user preferences. I stumbled over the fact, that logging in with a local user, the start page setting is honoured, so the successful login redirects to one of Home, Dashboard or My Courses, respectively. Depending on the user's setting.
However, logging in with OAuth2 this particular user setting is not taken into account. The successful login always redirects to document root (a.k.a. /). The user setting is simply ignored.
To replicate:
- As the site admin, set 'defaulthomepage' ("Start page for users") to "User preference"
- Set up an IdP, e.g. Google (because that's an easy one you can use with localhost quickly)
- Enable auth_oauth2 plugin
- Login via Google OIDC
- When you're logged in, go to user preferences
- Change the "Start page" preference to something that is not the default on a vanilla site. E.g. "My courses"
- Log out
- Log in again using Google OIDC
Expected: You are taken to My courses page
Actual: You are taken to the default / homepage (which for me was Dashboard)