Blame view

config/saml20-sp-mixin.php 3.3 KB
e2d01488a   Esmeralda Pires   1ºVersão
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
  <?php
  
  $fieldsToStrip = array('entityDescriptor');
  
  // NB: The examples assume that the authsource delivers attributes using friendly names
  // and that the following global attribute filters are configured:
  // 		50 => 'core:AttributeLimit', 
  // 		90 => array( 'class' => 'consent:Consent', ...),
  // 		95 => array('class' => 'core:AttributeMap', 'name2oid'),
  
  
  
  // ---( default Service Provider configuration template )---
  
  $defaultTemplate = array (
    'AttributeNameFormat' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
  
    /*
     * NameID format to use (default is transient)
     */
    'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent',
  
    'attributes' => array(
    	'eduPersonPrincipalName',
    	'schacHomeOrganization',
    	'eduPersonScopedAffiliation',
    	'mail',
    ),
    'attributes.allowed.ifrequired' => array(
  	'displayName',
  	'givenName',
  	'sn',
  	'o',
  	'ou',
  	'eduPersonPrimaryAffiliation',
  	'eduPersonPrincipalName',
  	'eduPersonScopedAffiliation',
  	'eduPersonTargetedID',
  	'schacHomeOrganization',
  	'cn',
  	'mail'
    ),
    'authproc' => array(
  	3 => array(
  		'class' => 'core:TargetedID',
  		'nameId' => TRUE,
  	),
  	50 => array(
  		'class' => 'core:AttributeLimit',
   	),
  	90 => array(
  		'class' => 'core:AttributeMap',
  		'name2oid'
  	),
    ),
  );
  
  // ---( Attribute release configuration template for services that comply with service categories/profiles )---
  
  /*
   * REFEDS Research and Scholarship service category
   */
  $template['http://refeds.org/category/research-and-scholarship'] = array (
    'AttributeNameFormat' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
  
    /*
     * NameID format to use (default is transient)
     */
    'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent',
  
     // following attributes are default values
    'attributes' => array(
    	'mail',
    	'displayName',
    	'eduPersonPrincipalName',
    	'eduPersonScopedAffiliation',
    	'eduPersonTargetedID'
    ),
    'attributes.allowed.ifrequired' => array(
  	'mail',
  	'displayName',
  	'givenName',
  	'cn',
  	'sn',
  	'o',
  	'ou',
  	'eduPersonPrincipalName',
  	'eduPersonTargetedID',
  	'eduPersonPrimaryAffiliation',
  	'eduPersonScopedAffiliation',
  	'schacHomeOrganization',
    ),
    'authproc' => array(
  	3 => array(
  		'class' => 'core:TargetedID',
  		'nameId' => TRUE,
  	),
  	50 => array(
  		'class' => 'core:AttributeLimit',
    	),
  	90 => array(
  		'class' => 'core:AttributeMap',
  		'name2oid'
  	),
    ),
  );
  
  /*
   * GÉANT Data Protection Code of Conduct service category
   */
  $template['http://www.geant.net/uri/dataprotection-code-of-conduct/v1'] = array (
    'AttributeNameFormat' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
  
    /*
     * NameID format to use (default is transient)
     */
    'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent',
  
    'attributes' => array(
    	'mail',
    	'eduPersonPrincipalName',
    	'schacHomeOrganization',
    	'eduPersonScopedAffiliation',
    ),
    'attributes.allowed.ifrequired' => array(
  	'mail',
  	'displayName',
  	'givenName',
  	'cn',
  	'sn',
  	'o',
  	'ou',
  	'eduPersonPrincipalName',
  	'eduPersonTargetedID',
  	'eduPersonPrimaryAffiliation',
  	'eduPersonScopedAffiliation',
  	'schacHomeOrganization',
    ),
    'authproc' => array(
  	3 => array(
  		'class' => 'core:TargetedID',
  		'nameId' => TRUE,
  	),
  	50 => array(
  		'class' => 'core:AttributeLimit',
    	),
  	90 => array(
  		'class' => 'core:AttributeMap',
  		'name2oid'
  	),
    ),
  );
  
  ?>