\AuthRemoteUserExtension
Synopsis
class AuthRemoteUserExtension
extends Extension
{
- // members
- private static bool $auto_create_user = false;
- private static $auto_user_group = NULL;
- // methods
- public static void setAutoCreateUser()
- public static void setAutoUserGroup()
- public void onAfterInit()
Hierarchy
Extends
- Extension
Members
private
- $auto_create_user — bool
- $auto_user_group — string
Methods
public
- onAfterInit() — If the REMOTE_USER is set and is in the Member table, log that member in. If not, and Config::inst()->get('AuthRemoteUserExtension', 'auto_create_user') is set, add that Member to the configured group, and log the new user in. Otherwise, do nothing.
- setAutoCreateUser() — Set whether to create a new user if the credential is not recognized.
- setAutoUserGroup() — Set the group name for auto-created users.