Skip to content

Commit 8447f62

Browse files
committed
Add missing option for saml:Action
1 parent b28bb14 commit 8447f62

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/Constants.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,11 @@ class Constants extends \SimpleSAML\XMLSecurity\Constants
479479
*/
480480
public const string ACTION_GHPP = 'urn:oasis:names:tc:SAML:1.0:action:ghpp';
481481

482+
/**
483+
* Unix file permissions
484+
*/
485+
public const string ACTION_UNIX = 'urn:oasis:names:tc:SAML:1.0:action:unix';
486+
482487
/**
483488
* Sent when the principal wishes to terminate the indicated session
484489
*/

src/XML/saml/Action.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ public function __construct(
5959
array_column(GHPPEnum::cases(), 'value'),
6060
ProtocolViolationException::class,
6161
);
62+
} elseif ($namespace->equals(C::ACTION_UNIX)) {
63+
Assert::regex(
64+
$content->getValue(),
65+
'/^[0-7]{4}$/',
66+
ProtocolViolationException::class,
67+
);
6268
}
6369

6470
$this->setContent($content);

0 commit comments

Comments
 (0)