ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($info, $config) | |
Constructor for this authentication source. More... | |
authenticate (&$state) | |
Log-in using Facebook platform. More... | |
finalStep (&$state) | |
Public Member Functions inherited from SimpleSAML_Auth_Source | |
__construct ($info, &$config) | |
Constructor for an authentication source. More... | |
getAuthId () | |
Retrieve the ID of this authentication source. More... | |
authenticate (&$state) | |
Process a request. More... | |
reauthenticate (array &$state) | |
Reauthenticate an user. More... | |
initLogin ($return, $errorURL=null, array $params=array()) | |
Start authentication. More... | |
logout (&$state) | |
Log out from this authentication source. More... | |
Data Fields | |
const | STAGE_INIT = 'facebook:init' |
The string used to identify our states. More... | |
const | AUTHID = 'facebook:AuthId' |
The key of the AuthId field in the state. More... | |
Private Attributes | |
$api_key | |
Facebook App ID or API Key. More... | |
$secret | |
Facebook App Secret. More... | |
$req_perms | |
Which additional data permissions to request from user. More... | |
$user_fields | |
A comma-separated list of user profile fields to request. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SimpleSAML_Auth_Source | |
static | getSourcesOfType ($type) |
Get sources of a specific type. More... | |
static | completeAuth (&$state) |
Complete authentication. More... | |
static | loginCompleted ($state) |
Called when a login operation has finished. More... | |
static | completeLogout (&$state) |
Complete logout. More... | |
static | getById ($authId, $type=null) |
Retrieve authentication source. More... | |
static | logoutCallback ($state) |
Called when the authentication source receives an external logout request. More... | |
static | getSources () |
Retrieve list of authentication sources. More... | |
Protected Member Functions inherited from SimpleSAML_Auth_Source | |
addLogoutCallback ($assoc, $state) | |
Add a logout callback association. More... | |
callLogoutCallback ($assoc) | |
Call a logout callback based on association. More... | |
Static Protected Member Functions inherited from SimpleSAML_Auth_Source | |
static | validateSource ($source, $id) |
Make sure that the first element of an auth source is its identifier. More... | |
Protected Attributes inherited from SimpleSAML_Auth_Source | |
$authId | |
Definition at line 9 of file Facebook.php.
sspmod_authfacebook_Auth_Source_Facebook::__construct | ( | $info, | |
$config | |||
) |
Constructor for this authentication source.
array | $info | Information about this authentication source. |
array | $config | Configuration. |
Definition at line 63 of file Facebook.php.
References $config, $info, and SimpleSAML_Configuration\loadFromArray().
sspmod_authfacebook_Auth_Source_Facebook::authenticate | ( | & | $state | ) |
Log-in using Facebook platform.
array | &$state | Information about the current authentication. |
Definition at line 84 of file Facebook.php.
References SimpleSAML_Auth_Source\$authId, $state, $url, array, SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
sspmod_authfacebook_Auth_Source_Facebook::finalStep | ( | & | $state | ) |
Definition at line 102 of file Facebook.php.
References $attributes, $info, $key, $state, array, and SimpleSAML\Logger\debug().
|
private |
Facebook App ID or API Key.
Definition at line 27 of file Facebook.php.
|
private |
Which additional data permissions to request from user.
Definition at line 39 of file Facebook.php.
|
private |
Facebook App Secret.
Definition at line 33 of file Facebook.php.
|
private |
A comma-separated list of user profile fields to request.
Note that some user fields require appropriate permissions. For example, to retrieve the user's primary email address, "email" must be specified in both the req_perms and the user_fields parameter.
When empty, only the app-specific user id and name will be returned.
See the Graph API specification for all available user fields: https://developers.facebook.com/docs/graph-api/reference/v2.6/user
Definition at line 54 of file Facebook.php.
const sspmod_authfacebook_Auth_Source_Facebook::AUTHID = 'facebook:AuthId' |
The key of the AuthId field in the state.
Definition at line 21 of file Facebook.php.
const sspmod_authfacebook_Auth_Source_Facebook::STAGE_INIT = 'facebook:init' |
The string used to identify our states.
Definition at line 15 of file Facebook.php.