dmirandaa / moodle-auth_saml2sso

Moodle plugin for authentication using a SimpleSAMLphp Service Provider
https://moodle.org/plugins/auth_saml2sso
0 stars 6 forks source link

added code so its set as button instead of direct login #15

Closed neeesn closed 6 years ago

neeesn commented 6 years ago

Sets a button for saml2sso as IDSP so theres option still to use moodle login

neeesn commented 6 years ago

Setting code into dual login - dual login = yes - Button is showed on login - Dual login = no - user is directly redirected to saml login

neeesn commented 6 years ago

Option to set url as button in the settings.

neeesn commented 6 years ago

Damit -didnt mean to close it

dmirandaa commented 6 years ago

Hi Henrik, I think the approach to add a button to allow user to select IdP auth is opposite to the purpose of this plugin. The primary condition is to always redirect every user to IdP authentication, unless they know how to login with a local Moodle account, maybe only admin could do that. To login with a local account you just need pass saml=off parameter to /login/index.php?saml=off url.

mfprimo commented 6 years ago

Hi Daniel, I totally agree with you that the primary purpose of this plugin should be to redirect every user to IdP authentication.

But we have more than 50 Moodle instances and in a few of them we share both SSO and local (or LDAP or DB) user accounts. From our experience, in these cases it is impractical to explain to the users how to login skipping SSO using a query parameter. In addition, I think that the "dual login" term is a little misleading.

Thus my above proposal:

mfprimo commented 6 years ago

Ops... 4cf1590 commit as-is breaks the semantics of dual-login option (see above). I was being suggesting to accept a modified version of the contribute.

dmirandaa commented 6 years ago

Yes, I'll test and change before release e new version, I merged just to resolve the conflicts