File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,6 @@ php console.php app:enable solid
66php console.php config:system:set trusted_domains 1 --value=server
77php console.php config:system:set trusted_domains 2 --value=nextcloud.local
88php console.php config:system:set trusted_domains 3 --value=thirdparty
9+ # set 'tester' and 'https://tester' as allowed clients for the test suite to run
10+ php console.php user:setting alice solid allowedClients ' ["f5d1278e8109edd94e1e4197e04873b9", "2e5cddcf0f663544e98982931e6cc5a6"]'
911echo configured
Original file line number Diff line number Diff line change @@ -255,12 +255,6 @@ public function authorize() {
255255
256256 private function checkApproval ($ clientId ) {
257257 $ allowedClients = $ this ->config ->getAllowedClients ($ this ->userId );
258- if ($ clientId == md5 ("tester " )) { // FIXME: Double check that this is not a security issue; It is only here to help the test suite;
259- return \Pdsinterop \Solid \Auth \Enum \Authorization::APPROVED ;
260- }
261- if ($ clientId == md5 ("https://tester " )) { // FIXME: Double check that this is not a security issue; It is only here to help the test suite;
262- return \Pdsinterop \Solid \Auth \Enum \Authorization::APPROVED ;
263- }
264258 if (in_array ($ clientId , $ allowedClients )) {
265259 return \Pdsinterop \Solid \Auth \Enum \Authorization::APPROVED ;
266260 } else {
You can’t perform that action at this time.
0 commit comments