forked from simplesamlphp/simplesamlphp-module-casserver
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauthsources.php
More file actions
63 lines (57 loc) · 2.35 KB
/
authsources.php
File metadata and controls
63 lines (57 loc) · 2.35 KB
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
<?php
declare(strict_types=1);
$config = array(
// This is an authentication source which handles admin authentication.
'admin' => array(
'core:AdminPassword',
),
'example-userpass' => [
'exampleauth:UserPass',
'users' => [
'student:studentpass' => [
'uid' => ['student'],
'cn' => ['Firsty Lasty'],
'eduPersonAffiliation' => ['member', 'student'],
'eduPersonNickname' => 'Sir_Nickname',
'displayName' => 'Some User',
'givenName' => 'Firsty',
'middle_name' => 'Mid',
'sn' => 'Lasty',
'labeledURI' => 'https://example.com/student',
'jpegURL' => 'https://example.com/student.jpg',
'mail' => 'something@example.com',
'email_verified' => 'yes',
'zoneinfo' => 'Europe/Paris',
'updated_at' => '1621374126',
'preferredLanguage' => 'fr-CA',
'website' => 'https://example.com/student-blog',
'gender' => 'female',
'birthdate' => '1945-03-21',
'eduPersonUniqueId' => '13579',
'phone_number_verified' => 'yes',
'mobile' => '+1 (604) 555-1234;ext=5678',
'postalAddress' => ["Place Charles de Gaulle, Paris"],
'street_address' => ['Place Charles de Gaulle'],
'locality' => ['Paris'],
'region' => ['Île-de-France'],
'postal_code' => ['75008'],
'country' => ['France'],
// Confirm that an attribute containing xml stuff is handled
'attributeContainingXml' => ['<confirmNothingBreaks test="true"/>', 'test < "']
],
'employee:employeepass' => [
'uid' => ['employee'],
'eduPersonAffiliation' => ['member', 'employee'],
'eduPersonEntitlement' => ['urn:example:oidc:manage:client']
],
'member:memberpass' => [
'uid' => ['member'],
'eduPersonAffiliation' => ['member'],
'eduPersonEntitlement' => ['urn:example:oidc:manage:client']
],
'minimal:minimalpass' => [
'uid' => ['minimal'],
],
],
],
);