Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

declare(strict_types=1);

use ILIAS\AuthSOAP\ConnectionTester;
use ILIAS\Style\Content\GUIService;
use ILIAS\components\Authentication\Pages\AuthPageEditorContext;

Expand Down Expand Up @@ -488,8 +489,13 @@ public function testSoapAuthConnectionObject(): void
$test_form = $test_form->withRequest($this->request);
$result = $test_form->getData();
if (!is_null($result)) {
$panel_content[] = $this->ui->legacy(
ilSOAPAuth::testConnection($result["ext_uid"], $result["soap_pw"], $result["new_user"])
$panel_content = array_merge(
$panel_content,
(new ConnectionTester($this->settings, $this->ui))->testConnection(
$result['ext_uid'],
$result['soap_pw'],
$result['new_user']
)
);
}
}
Expand Down
4 changes: 3 additions & 1 deletion components/ILIAS/SOAPAuth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ goto.php?clientid=abc&target=crs_123&soap_pw=kjWjb34&ext_uid=500
SOAP call to the external server:

There is an example implementation of a SOAP server (=external master system)
in classes/class.ilSoapDummyAuthServer.php). The main soap call is:
in src/SoapDummyAuthServer.php (`ILIAS\AuthSOAP`). Public test endpoints are provided
as `auth/soap/example/dummy_server.php` and `auth/soap/example/dummy_client.php`. The main
soap call is:

isValidSession:
in:
Expand Down
12 changes: 10 additions & 2 deletions components/ILIAS/SOAPAuth/SOAPAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@

namespace ILIAS;

class SOAPAuth implements Component\Component
use ILIAS\Component\Component;
use ILIAS\Component\Resource\Endpoint;
use ILIAS\Component\Resource\PublicAsset;

class SOAPAuth implements Component
{
public function init(
array | \ArrayAccess &$define,
Expand All @@ -32,6 +36,10 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[PublicAsset::class] = fn(): Endpoint =>
new Endpoint($this, 'dummy_server.php', 'auth/soap/example');

$contribute[PublicAsset::class] = fn(): Endpoint =>
new Endpoint($this, 'dummy_client.php', 'auth/soap/example');
}
}
227 changes: 0 additions & 227 deletions components/ILIAS/SOAPAuth/classes/class.ilAuthProviderSoap.php

This file was deleted.

80 changes: 0 additions & 80 deletions components/ILIAS/SOAPAuth/classes/class.ilSOAPAuth.php

This file was deleted.

Loading
Loading