Skip to content

Commit bd72060

Browse files
committed
Merge branch 'dependabot/github_actions/all-actions-c28b1dc141'
2 parents b97569d + 0eb2712 commit bd72060

File tree

13 files changed

+27
-24
lines changed

13 files changed

+27
-24
lines changed

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,17 @@
3232
"ext-dom": "*",
3333
"ext-filter": "*",
3434
"ext-libxml": "*",
35+
"ext-SimpleXML": "*",
3536

36-
"simplesamlphp/assert": "^1.0",
37-
"simplesamlphp/composer-module-installer": "^1.3.4",
37+
"simplesamlphp/assert": "^1.1",
38+
"simplesamlphp/composer-module-installer": "^1.3",
3839
"simplesamlphp/simplesamlphp": "^2.1",
39-
"simplesamlphp/xml-cas": "^1.0.3",
40-
"simplesamlphp/xml-common": "^1.12.2",
41-
"simplesamlphp/xml-soap": "^1.3.0"
40+
"simplesamlphp/xml-cas": "^1.2",
41+
"simplesamlphp/xml-common": "^1.16",
42+
"simplesamlphp/xml-soap": "^1.4"
4243
},
4344
"require-dev": {
44-
"simplesamlphp/simplesamlphp-test-framework": "^1.5.5"
45+
"simplesamlphp/simplesamlphp-test-framework": "^1.5"
4546
},
4647
"support": {
4748
"issues": "https://github.com/simplesamlphp/simplesamlphp-module-casserver/issues",

phpcs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<!-- Ignore files with side effects that we cannot fix -->
1616
<rule ref="PSR1.Files.SideEffects">
1717
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
18+
<exclude-pattern>tests/public/UtilsTest.php</exclude-pattern>
1819
<exclude-pattern>tests/www/UtilsTest.php</exclude-pattern>
1920
</rule>
2021

psalm-dev.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<UnresolvableInclude>
2222
<errorLevel type="suppress">
2323
<file name="tests/bootstrap.php" />
24+
<file name="tests/routers/configLoader.php" />
2425
</errorLevel>
2526
</UnresolvableInclude>
2627
</issueHandlers>

psalm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
reportMixedIssues="false"
77
>
88
<projectFiles>
9-
<directory name="config-templates" />
9+
<directory name="config" />
10+
<directory name="public" />
1011
<directory name="src" />
11-
<directory name="www" />
1212
</projectFiles>
1313

1414
<issueHandlers>

public/utility/validateTicket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
declare(strict_types=1);
3131

3232
use Exception;
33+
use SimpleSAML\CAS\Constants as C;
3334
use SimpleSAML\Configuration;
3435
use SimpleSAML\Logger;
3536
use SimpleSAML\Module;
3637
use SimpleSAML\Utils;
37-
use SimpleSAML\XML\CAS\Constants as C;
3838

3939
require_once('urlUtils.php');
4040

src/Cas/Protocol/Cas20.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
use SimpleSAML\CAS\XML\cas\AuthenticationDate;
3030
use SimpleSAML\CAS\XML\cas\AuthenticationFailure;
3131
use SimpleSAML\CAS\XML\cas\AuthenticationSuccess;
32-
use SimpleSAML\CAS\XML\cas\Code;
3332
use SimpleSAML\CAS\XML\cas\IsFromNewLogin;
3433
use SimpleSAML\CAS\XML\cas\LongTermAuthenticationRequestTokenUsed;
3534
use SimpleSAML\CAS\XML\cas\ProxyFailure;
@@ -170,8 +169,7 @@ public function getValidateSuccessResponse(string $username): AuthenticationSucc
170169
*/
171170
public function getValidateFailureResponse(string $errorCode, string $explanation): ServiceResponse
172171
{
173-
$code = new Code($errorCode);
174-
$authenticationFailure = new AuthenticationFailure($explanation, $code);
172+
$authenticationFailure = new AuthenticationFailure($explanation, $errorCode);
175173
$serviceResponse = new ServiceResponse($authenticationFailure);
176174

177175
return $serviceResponse;
@@ -199,8 +197,7 @@ public function getProxySuccessResponse(string $proxyTicketId): ServiceResponse
199197
*/
200198
public function getProxyFailureResponse(string $errorCode, string $explanation): ServiceResponse
201199
{
202-
$code = new Code($errorCode);
203-
$proxyFailure = new ProxyFailure($explanation, $code);
200+
$proxyFailure = new ProxyFailure($explanation, $errorCode);
204201
$serviceResponse = new ServiceResponse($proxyFailure);
205202

206203
return $serviceResponse;

src/Cas/Protocol/SamlValidateResponder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
use SimpleSAML\Configuration;
88
use SimpleSAML\Module\casserver\Shib13\AuthnResponse;
9+
use SimpleSAML\SOAP11\XML\env\Body;
10+
use SimpleSAML\SOAP11\XML\env\Envelope;
911
use SimpleSAML\XML\Chunk;
1012
use SimpleSAML\XML\DOMDocumentFactory;
1113
use SimpleSAML\XML\SerializableElementInterface;
12-
use SimpleSAML\XML\SOAP11\XML\env\Body;
13-
use SimpleSAML\XML\SOAP11\XML\env\Envelope;
1414

1515
class SamlValidateResponder
1616
{
@@ -64,7 +64,7 @@ public function convertToSaml(array $ticket): Chunk
6464

6565
/**
6666
* @param \SimpleSAML\XML\SerializableElementInterface $samlResponse
67-
* @return \SimpleSAML\XML\SOAP11\XML\env\Envelope
67+
* @return \SimpleSAML\SOAP11\XML\env\Envelope
6868
*/
6969
public function wrapInSoap(SerializableElementInterface $samlResponse): Envelope
7070
{

src/Cas/Ticket/TicketFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function createProxyGrantingTicket(array $content): array
103103
*/
104104
public function createProxyTicket(array $content): array
105105
{
106-
$randomUtils = Random();
106+
$randomUtils = new Random();
107107
$id = str_replace('_', 'PT-', $randomUtils->generateID());
108108
$expiresAt = time() + $this->proxyTicketExpireTime;
109109

src/Cas/TicketValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
namespace SimpleSAML\Module\casserver\Cas;
66

77
use InvalidArgumentException;
8+
use SimpleSAML\CAS\Constants as C;
89
use SimpleSAML\Configuration;
910
use SimpleSAML\Logger;
1011
use SimpleSAML\Module;
1112
use SimpleSAML\Module\casserver\Cas\CasException;
1213
use SimpleSAML\Module\casserver\Cas\Ticket\TicketFactory;
1314
use SimpleSAML\Module\casserver\Cas\Ticket\TicketStore;
14-
use SimpleSAML\XML\CAS\Constants as C;
1515

1616
class TicketValidator
1717
{

src/Shib13/AuthnResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use DOMDocument;
88
use DOMNode;
99
use DOMNodeList;
10-
use DOMXpath;
10+
use DOMXPath;
1111
use Exception;
1212
use SimpleSAML\Assert\Assert;
1313
use SimpleSAML\Configuration;

0 commit comments

Comments
 (0)