Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit d77cdcb

Browse files
committed
style: ecs v10, PSR-12
1 parent 42155a6 commit d77cdcb

File tree

93 files changed

+999
-817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+999
-817
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@
4545
"web-token/jwt-checker": "^2.2"
4646
},
4747
"require-dev": {
48-
"symplify/easy-coding-standard": "^9.2"
48+
"symplify/easy-coding-standard": "^10.0"
4949
}
5050
}

composer.lock

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config-templates/challenges_config.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
declare(strict_types=1);
44

55
$config = [
6-
/**
6+
/*
77
* Path to public key
88
*/
99
'pubKey' => 'Path_to_public_key',
1010

11-
/**
11+
/*
1212
* Path to private key
1313
*/
1414
'privKey' => 'Path_to_private_key',
1515

16-
/**
16+
/*
1717
* Hash algorithm
1818
*/
1919
'hashAlg' => 'sha256',
2020

21-
/**
21+
/*
2222
* Signature algorith
2323
*/
2424
'sigAlg' => 'RS512',
2525

26-
/**
26+
/*
2727
* Challenge length
2828
*/
2929
'challengeLength' => 64,

config-templates/module_discopower.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/**
66
* Configuration for the DiscoPower module.
77
*/
8-
98
$config = [
109
// Which tab should be set as default. 0 is the first tab
1110
'defaulttab' => 0,

config-templates/module_perun.php

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,42 @@
99
* copy command (from SimpleSAML base dir) cp modules/perun/module_perun.php config/
1010
*/
1111
$config = [
12-
/**
12+
/*
1313
* base url to rpc with slash at the end.
1414
*/
1515
'rpc.url' => 'https://perun.inside.cz/krb/rpc/',
1616

17-
/**
17+
/*
1818
* rpc credentials if rpc url is protected with basic auth.
1919
*/
2020
'rpc.username' => '_proxy-idp',
2121
'rpc.password' => 'password',
2222

23-
/**
23+
/*
2424
* rpc serializer. Default value is 'json'.
2525
*/
2626
'rpc.serializer' => 'json',
2727

28-
/**
28+
/*
2929
* hostname of perun ldap with ldap(s):// at the beginning.
3030
*/
3131
'ldap.hostname' => 'ldaps://perun.inside.cz',
3232

3333
'ldap.base' => 'dc=perun,dc=inside,dc=cz',
3434

35-
/**
35+
/*
3636
* ldap credentials if ldap search is protected. If it is null or not set at all. No user is used for bind.
3737
*/
3838
//'ldap.username' => '_proxy-idp',
3939
//'ldap.password' => 'password'
4040

41-
/**
41+
/*
4242
* Whether to use startTLS on port 389. Defaults to false. SSL/TLS is always used for ldaps: regardless of this
4343
* setting.
4444
*/
4545
//'ldap.enable_tls' => true,
4646

47-
/**
47+
/*
4848
* Perun group name to eduPersonEntitlement mapping. Mapping is according to the spec in
4949
* https://aarc-project.eu/wp-content/uploads/2017/11/AARC-JRA1.4A-201710.pdf groupNameAARC - enable group naming
5050
* according to AARC spec globally, every SP can overide it with groupMapping option entitlementPrefix - prefix put
@@ -55,50 +55,50 @@
5555
'entitlementPrefix' => 'prefix',
5656
'entitlementAuthority' => 'authority',
5757

58-
/**
58+
/*
5959
* specify which type of IdPListService will be used Expected values: csv, db
6060
*/
6161
'idpListServiceType' => '',
6262

63-
/**
63+
/*
6464
* Part of configuration for status page *
6565
*/
6666

67-
/**
67+
/*
6868
* Specify the used interface to get the status data Only NAGIOS type is now allowed
6969
*/
7070
'status.type' => 'NAGIOS',
7171

72-
/**
72+
/*
7373
* Specify the url for get status information
7474
*/
7575
'status.nagios.url' => '',
7676

77-
/**
77+
/*
7878
* Specify the path to the certicate
7979
*/
8080
'status.nagios.certificate_path' => '',
8181

82-
/**
82+
/*
8383
* Specify the CA dir path
8484
*/
8585
'status.nagios.ca_path' => '/etc/ssl/certs',
8686

87-
/**
87+
/*
8888
* Specify the password for private key
8989
*
9090
* OPTIONAL
9191
*/
9292
'status.nagios.certificate_password' => '',
9393

94-
/**
94+
/*
9595
* Specify, if the peer verification is enabled,
9696
*
9797
* OPTIONAL Default: false
9898
*/
9999
'status.nagios.peer_verification' => false,
100100

101-
/**
101+
/*
102102
* Specify the list of services, which will be shown
103103
*
104104
* OPTIONAL Default: show all received services
@@ -110,102 +110,102 @@
110110
],
111111
],
112112

113-
/**
113+
/*
114114
* Part of configuration for listOfSps *
115115
*/
116116

117-
/**
117+
/*
118118
* Specify the unique identifier of proxy
119119
*/
120120
'listOfSps.proxyIdentifier' => '',
121121

122-
/**
122+
/*
123123
* If true, page shows list of SAML2 and OIDC services. If false page shows only SAML2 services
124124
*/
125125
'listOfSps.showOIDCServices' => true / false,
126126

127-
/**
127+
/*
128128
* Specify attribute name for facility attribute proxy identifiers
129129
*/
130130
'listOfSps.perunProxyIdentifierAttr' => '',
131131

132-
/**
132+
/*
133133
* Specify attribute name for facility attribute with service name
134134
*/
135135
'listOfSps.serviceNameAttr' => '',
136136

137-
/**
137+
/*
138138
* Specify attribute name for facility attribute with loginUrL for service
139139
*/
140140
'listOfSps.loginURLAttr' => '',
141141

142-
/**
142+
/*
143143
* Specify attribute name for facility attribute with information, if service is in test environment
144144
*/
145145
'listOfSps.isTestSpAttr' => '',
146146

147-
/**
147+
/*
148148
* Specify attribute name for facility attribute with information, if facility may be shown on service list or not
149149
*/
150150
'listOfSps.showOnServiceListAttr' => '',
151151

152-
/**
152+
/*
153153
* Specify attribute name for facility attribute with service EntityId
154154
*/
155155
'listOfSps.SAML2EntityIdAttr' => '',
156156

157-
/**
157+
/*
158158
* Specify attribute name for facility attribute with service OIDC ClientId
159159
*/
160160
'listOfSps.OIDCClientIdAttr' => '',
161161

162-
/**
162+
/*
163163
* Specify list of facility attributes, which will be shown
164164
*/
165165
'listOfSps.attributesDefinitions' => [''],
166166

167-
/**
167+
/*
168168
* Specify list of facility attributes which have translations. If an attribute is not included in
169169
* listOfSps.attributesDefinitions, it will be added. Defaults to an empty array.
170170
*/
171171
//'listOfSps.multilingualAttributes' => [],
172172

173-
/**
173+
/*
174174
* Part of configuration for DS *
175175
*/
176176

177177
'wayf_config' => [
178-
/**
178+
/*
179179
* specify if disco module should filter out IdPs which are not whitelisted neither committed to CoCo or RaS.
180180
* default is false.
181181
*/
182182
'disable_whitelisting' => false,
183-
/**
183+
/*
184184
* Specify translate module
185185
*/
186186
'translate_module' => 'disco',
187-
/**
187+
/*
188188
* Specify prefix for filtering AuthnContextClassRef All AuthnContextClassRef values starts with this prefix
189189
* will be removed before the request will be send to IdP
190190
*/
191191
'remove_authn_context_class_ref_prefixes' => ['urn:cesnet:proxyidp:'],
192-
/**
192+
/*
193193
* Add insitution configuration. The block has to specify email and url
194194
*/
195195
'add_institution_config' => [
196196
'url' => 'https://login.elixir-czech.org/add-institution/',
197197
'email' => '[email protected]',
198198
],
199-
/**
199+
/*
200200
* Warning configuration The configuration can be loaded from file, url or directly from this config. All
201201
* possibilities has to follow the structure under the "config" key.
202202
*/
203203
'warning_config' => [
204-
# IF SOURCE === FILE
205-
# 'file' => '/etc/perun/simplesamlphp/elixir/config/warning.php',
206-
# IF SOURCE === URL
207-
# 'url' => 'https://test.com',
208-
# IF SOURCE === CONFIG
204+
// IF SOURCE === FILE
205+
// 'file' => '/etc/perun/simplesamlphp/elixir/config/warning.php',
206+
// IF SOURCE === URL
207+
// 'url' => 'https://test.com',
208+
// IF SOURCE === CONFIG
209209
'config' => [
210210
'enabled' => false,
211211
'type' => 'INFO',

0 commit comments

Comments
 (0)