File: authmemcookie.php

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (73 lines) | stat: -rw-r--r-- 2,316 bytes parent folder | download | duplicates (3)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php

/**
 * This is the configuration file for the Auth MemCookie example.
 */

$config = [
    /*
     * The authentication source that should be used.
     *
     * This must be one of the authentication sources configured in config/authsources.php.
     */
    'authsource' => 'default-sp',

    /*
     * This is the name of the cookie we should save the session id in. The value of this option must match the
     * Auth_memCookie_CookieName option in the Auth MemCookie configuration. The default value is 'AuthMemCookie'.
     *
     * Default:
     *  'cookiename' => 'AuthMemCookie',
     */
    'cookiename' => 'AuthMemCookie',

    /*
     * This option specifies the name of the attribute which contains the username of the user. It must be set to
     * a valid attribute name.
     *
     * Examples:
     *  'username' => 'uid', // LDAP attribute for user id.
     *  'username' => 'mail', // LDAP attribute for email address.
     *
     * Default:
     *  No default value.
     */
    'username' => null,

    /*
     * This option specifies the name of the attribute which contains the groups of the user. Set this option to
     * NULL if you don't want to include any groups.
     *
     * Example:
     *  'groups' => 'edupersonaffiliation',
     *
     * Default:
     *  'groups' => null,
     */
    'groups' => null,

    /*
     * This option contains the hostnames or IP addresses of the memcache servers where we should store the
     * authentication information. Separator is a comma. This option should match the address part of the
     * Auth_memCookie_Memcached_AddrPort option in the Auth MemCookie configuration.
     *
     * Examples:
     *  'memcache.host' => '192.168.93.52',
     *  'memcache.host' => 'memcache.example.org',
     *  'memcache.host' => 'memcache1.example.org,memcache2.example.org'
     *
     * Default:
     *  'memcache.host' => '127.0.0.1',
     */
    'memcache.host' => '127.0.0.1',

    /*
     * This option contains the port number of the memcache server where we should store the
     * authentication information. This option should match the port part of the
     * Auth_memCookie_Memcached_AddrPort option in the Auth MemCookie configuration.
     *
     * Default:
     *  'memcache.port' => 11211,
     */
    'memcache.port' => 11211,
];