forked from bradjones1/saml_idp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
saml_idp.api.php
43 lines (36 loc) · 962 Bytes
/
saml_idp.api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* @file
* Hook definitions for the saml_idp module.
*/
use Drupal\user\UserInterface;
/**
* @addtogroup hooks
* @{
*/
/**
* Alter user attributes passed in SAML responses.
*
* @param array $attributes
* Associative array of attributes to be passed in the SAML response.
* @param UserInterface $user_entity
* The user entity for the authenticated account
*/
function hook_saml_idp_attributes_alter(&$attributes, UserInterface &$user_entity) {}
/**
* Perform an action when a user successfully authenticates through SAML.
*
* @param array $state
* The state after the login has completed.
*/
function hook_saml_idp_login_completed($state) {}
/**
* Perform an action when a user successfully reauthenticates through SAML.
*
* @param array $state
* The state after the reauthentication has completed.
*/
function hook_saml_idp_reauthenticated($state) {}
/**
* @} End of "addtogroup hooks".
*/