MDL-55927 auth_radius: Move to third party plugin.
[moodle.git] / auth / upgrade.txt
blobe181b35b54cf87d003dc4a741ad1e44a4395e411
1 This files describes API changes in /auth/* - plugins,
2 information provided here is intended especially for developers.
4 === 3.2 ===
6 * New auth hook - pre_user_login_hook() - available, triggered right after the user object is created.
7   This can be used to modify the user object before any authentication errors are raised.
8 * The block_login now displays the loginpage_idp_list() links as well as main login page.
9 * The authentication plugin auth_radius has been moved to the plugins database.
11 === 3.0 ===
13 * login_signup_form::signup_captcha_enabled() now calls is_captcha_enabled() from the current auth plugin instead of from auth_email
15 === 2.9 ===
17 * Do not update user->firstaccess from any auth plugin, the complete_user_login() does it automatically.
19 * Add user_add_password_history() to user_signup() method.
21 * New auth hook - pre_loginpage_hook() - available, triggered before redirecting to the login page.
23 === 2.8 ===
25 * \core\session\manager::session_exists() now verifies the session is active
26   instead of only checking the session data is present in low level session handler
28 * MNet is no longer sending logs between the client and parent sites. auth_plugin_mnet::refresh_log() is now deprecated. There is
29   no alternative. Please don't use this function.
31 === 2.7 ===
33 * If you are returning a url in method change_password_url() from config, please make sure it is set before trying to use it.
35 === 2.6 ===
37 * can_be_manually_set() - This function was introduced in the base class and returns false by default. If overriden by
38   an authentication plugin to return true, the authentication plugin will be able to be manually set for users. For example,
39   when bulk uploading users you will be able to select it as the authentication method they use.
41 === 2.4 ===
43 required changes in code:
44 * use role_get_name() or role_fix_names() if you need any role names, using role.name
45   directly from database is not correct any more
47 optional - no changes needed:
48 * add support for custom user signup form - see auth_plugin_base::signup_form() function
50 === 2.2 ===
52 required changes in code:
53 * the correct sequence to set up global $USER is:
54     $user = get_complete_user_data('username', $username); // or $user = authenticate_user_login()
55     enrol_check_plugins($user);
56     session_set_user($user);