-
Notifications
You must be signed in to change notification settings - Fork 0
/
services.authentication.api.php
42 lines (38 loc) · 1.66 KB
/
services.authentication.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
<?php
/**
* @file
* Hooks provided by Services for the definition of authentication plugins.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Supplies information about a given authentication method to Services.
*
* @return
* An associative array with information about the authentication method
* and its callbacks. The possible keys are as follows (all keys are
* optional unless noted).
*
* - title (required): The display name for this authentication method.
* - description (required): Longer text describing this authentciation
* method.
* - authenticate_call (required): The name of a function to be called
* to perform the actual authentication. <details of params/return>
* - security_settings: A callback function which returns an associative
* array of Form API elements for a settings form.
* - default_security_settings: A callback funtion which returns an array
* with the default settings for the auth module.
* - _services_security_settings_validate: The name of a standard form
* validation callback for the form defined in 'security_settings'.
* - _services_security_settings_submit: The name of a standard form
* submit callback for the form defined in 'security_settings'.
* - alter_controllers: The name of a callback function which will alter a
* services method signature in order to add required arguments.
* - controller_settings: A callback function which returns an associative
* array of Form API elements for a controller settings form.
* - file: An include file which contains the authentication callbacks.
*/
function hook_services_authentication_info() {
}