Property | Type | Description | |
---|---|---|---|
$authId | auth source ID for this plugin instance | ||
$settings | settings for this plugin instance |
Method | Description | |
---|---|---|
__construct ( $settings = [], $authId = null ) | Constructor. | |
authenticate ( $username, $password ) : boolean | Authenticate a username and password. | |
createUser ( $user ) : boolean | Create a user on the remote source. | |
deleteUser ( $username ) : boolean | Delete a user from the remote source. | |
doCreateUser ( $user ) : boolean | Create remote user account, if enabled. | |
doGetUserInfo ( $user ) : boolean | Update local user profile from the remote source, if enabled. | |
doSetUserInfo ( $user ) : boolean | Update remote user profile, if enabled. | |
doSetUserPassword ( $username, $password ) : boolean | Update remote user password, if enabled. | |
getInstance ( $settings, $authId ) : AuthPlugin | Returns an instance of the authentication plugin | |
getSettingsTemplate ( ) : string | Return the path to a template for plugin settings. | |
getUserInfo ( $user ) : boolean | Retrieve user profile information from the remote source. | |
isSitePlugin ( ) | Return true iff this is a site-wide plugin. | |
setUserInfo ( $user ) : boolean | Store user profile information on the remote source. | |
setUserPassword ( $username, $password ) : boolean | Change a user's password on the remote source. | |
userExists ( $username ) : boolean | Check if a username exists. |
public __construct ( $settings = [], $authId = null ) | ||
$settings | array | |
$authId | int ID for this instance |
abstract public authenticate ( $username, $password ) : boolean | ||
$username | string | |
$password | string | |
return | boolean | true if authentication is successful |
public createUser ( $user ) : boolean | ||
$user | User to create | |
return | boolean | true if successful |
public deleteUser ( $username ) : boolean | ||
$username | string user to delete | |
return | boolean | true if successful |
public doCreateUser ( $user ) : boolean | ||
$user | User to create | |
return | boolean | true if successful |
public doGetUserInfo ( $user ) : boolean | ||
$user | User | |
return | boolean | true if successful |
public doSetUserInfo ( $user ) : boolean | ||
$user | User | |
return | boolean | true if successful |
public doSetUserPassword ( $username, $password ) : boolean | ||
$username | string | |
$password | string | |
return | boolean | true if successful |
abstract public getInstance ( $settings, $authId ) : AuthPlugin | ||
$settings | array settings specific to this instance | |
$authId | int identifier for this instance | |
return | AuthPlugin |
public getSettingsTemplate ( ) : string | ||
return | string |
public getUserInfo ( $user ) : boolean | ||
$user | User to update | |
return | boolean | true if successful |
public setUserInfo ( $user ) : boolean | ||
$user | User to store | |
return | boolean | true if successful |
public setUserPassword ( $username, $password ) : boolean | ||
$username | string user to update | |
$password | string the new password | |
return | boolean | true if successful |
public userExists ( $username ) : boolean | ||
$username | string | |
return | boolean |