Class

PHPBoostAuthenticationMethod

Package: PHPBoost\User\authentication Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Loic ROUCHON horn@phpboost.com Version: PHPBoost 5.2 - last update: 2017 06 08 Since: PHPBoost 3.0 - 2010 11 28 Contributor: Julien BRISWALTER j1.seth@phpboost.com Located at: phpboost/user/authentication/PHPBoostAuthenticationMethod.class.php

The AuthenticationMethod interface could be implemented in different ways to enable specifics authentication mecanisms. PHPBoost comes with a PHPBoostAuthenticationMethod which will be performed on the internal member list. But it is possible to implement external authentication mecanism by providing others implementations of this class to support LDAP authentication, OpenID, Facebook connect and more...

AuthenticationMethod
Extended by PHPBoostAuthenticationMethod
Methods summary
public
# __construct( $login, $password )
public
# set_association_parameters( $approved = true, $registration_pass = '' )
public
public
# associate( integer $user_id )

associate the current authentication method with the given user_id.

public
# dissociate( integer $user_id )

dissociate the current authentication method with the given user_id.

public integer
# authenticate( )

Tries to authenticate the user and returns true on success, false otherwise.

public static
# get_auth_infos( $user_id )
public static
# update_auth_infos( $user_id, $login = null, $approved = null, $password = null, $registration_pass = null, $change_password_pass = null )
public static
# registration_pass_exists( $registration_pass )
public static
# change_password_pass_exists( $change_password_pass )
Constants summary
string AUTHENTICATION_METHOD
# 'internal'
Properties inherited from AuthenticationMethod
$error_msg
Annonces