catalyst / moodle-auth_saml2

SAML done 100% in Moodle, fast, simple, secure
https://moodle.org/plugins/auth_saml2
71 stars 133 forks source link

SAML ignores user preference for default home page #647

Open jstilwell opened 2 years ago

jstilwell commented 2 years ago

Moodle has a setting to allow users to set their preference for their home page under Site Administration -> Appearance -> Navigation -> Home page for users. Set this to user's preference.

And then under the user's Preferences, you can click on home page and set "Home page" to "Dashboard".

Then the expectation is that when you login as this user again, you will be redirected to the user's dashboard.

What happens?

When logging in as a SAML user, you are redirected to the site's front page, regardless of setting your your home page preference to "Dashboard"

Errors?

None at all. The SAML login just redirects to the site's front page without making any noise.

brendanheywood commented 2 years ago

Is this a bug you are experiencing on moodle 4.0? Generally speaking saml doesn't care much about the url you want to go to it just returns you to where you would have gone. I can sort of reproduce this on core master 4.0 but I'm pretty sure this is a core bug unrelated to saml. ie clicking on the logo always takes you to the Home regardless of your preferences when defaulthomepage is set to user preference