-
Notifications
You must be signed in to change notification settings - Fork 142
Open
Labels
Description
Problem
Currently, when a new user is "autocreated" via SAML2 (auth_saml2 | autocreate), the plugin automatically sets the user’s auth field to saml2. Even though there is a check in the code to only set it if $user->auth is empty:
if (empty($user->auth)) {
$user->auth = 'saml2';
}...it seems like there is no way to fill this field:
- There is no GUI option on the
admin/settings.php?section=authsettingsaml2settings page to change the auth method - There is no idP claim which gets accepted for the
authfield - There is no setting for it in the
config.phpfile inside the plugin root folder - It seems like not even the code touches the
user->authfield except for the check from before
This issue affects setups with Dual Login enabled and existing other auth methods (e.g.: ldap) where administrators want to allow SAML2 login for new users but still have them authenticate via another auth method.
Environment
- Moodle: 4.5.7
- Auth SAML2 Plugin: latest MOODLE_405_STABLE release