-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshibconfig.php
More file actions
66 lines (64 loc) · 1.78 KB
/
shibconfig.php
File metadata and controls
66 lines (64 loc) · 1.78 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
64
65
66
<?php
/*
* Configuration Defaults:
* ShibUseHeaders => false
*
* @optional
* @var array
*/
$shibposeur_config['config'] = array(
'ShibUseHeaders' => false,
// Which attribute should populate REMOTE_USER?
// Defaults to eppn
'REMOTE_USER_attribute' => 'eppn'
);
/**
* Array of params which will get stuffed into $_SERVER to pose as shibboleth attributes
* The JSON-encoded cookie may only set these parameters.
*
* @required
* @var array
*/
$shibposeur_config['common_attributes'] = array(
'Shib-Application-ID' => 'default',
'Shib-Identity-Provider' => 'https://idp2.shib.umn.edu/idp/shibboleth',
'Shib-Authentication-Method' => 'urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified',
'Shib-AuthnContext-Class' => 'urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified',
);
/**
* Mock users, indexed by username, with attributes as key => value pairs
*
* @required
* @var array
*/
$shibposeur_config['users'] = array(
'mjb' => array(
'employeeNumber' => '1234567',
'givenName' => 'Fake',
'surname' => 'Spoof',
'uid' => 'mjb',
'eppn' => 'mjb@example.com',
'umnAffinity' => 'tc.staff.lib.372A.9775',
'umnLibAccess' => '2;1;9',
'umnLibUserType' => 'IMNU:49',
'umnPatronID' => '2222222222',
'umnPersonType' => 'Staff;Degree',
'umnRole' => 'tc.dgre.gs.music.ma;tc.staff.lib.372A.9775',
'umnUCard' => '1234567890'
),
'smith' => array(
'employeeNumber' => '9876543',
'givenName' => 'Not',
'surname' => 'Real',
'uid' => 'smith',
'eppn' => 'smith@example.com',
'umnAffinity' => 'tc.grad.cla.abc.def',
'umnLibAccess' => '2;1;9',
'umnLibUserType' => 'IMNU:49',
'umnPatronID' => '2222222222',
'umnPersonType' => 'Staff;Degree',
'umnRole' => 'tc.grad.cla.abc.def',
'umnUCard' => '2ucsa9999999xxx'
)
);
?>