Skip to content
Draft
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
3 changes: 3 additions & 0 deletions classes/element.registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
declare(strict_types=1);

return [
'urn:oasis:names:tc:SAML:2.0:protocol:ext:async-slo' => [
'Asynchronous' => '\SimpleSAML\SAML2\XML\aslo\Asynchronous',
],
'urn:oasis:names:tc:SAML:metadata:algsupport' => [
'DigestMethod' => '\SimpleSAML\SAML2\XML\alg\DigestMethod',
'SigningMethod' => '\SimpleSAML\SAML2\XML\alg\SigningMethod',
Expand Down
13 changes: 13 additions & 0 deletions resources/schemas/saml-async-slo-v1.0.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>

<schema xmlns:aslo="urn:oasis:names:tc:SAML:2.0:protocol:ext:async-slo"
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:oasis:names:tc:SAML:2.0:protocol:ext:async-slo"
elementFormDefault="qualified">

<element name="Asynchronous" type="aslo:AsynchronousType" />
<complexType name="AsynchronousType" />

<attribute name="supportsAsynchronous" type="boolean"/>

</schema>
5 changes: 5 additions & 0 deletions src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ class Constants extends \SimpleSAML\XMLSecurity\Constants
*/
public const string NS_ALG = 'urn:oasis:names:tc:SAML:metadata:algsupport';

/**
* The namespace for the SAML 2 Asynchronous Single Logout Profile Extension
*/
public const string NS_ASLO = 'urn:oasis:names:tc:SAML:2.0:protocol:ext:async-slo';

/**
* The namespace for the ECP protocol.
*/
Expand Down
23 changes: 23 additions & 0 deletions src/XML/aslo/AbstractAlsoElement.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);

namespace SimpleSAML\SAML2\XML\aslo;

use SimpleSAML\SAML2\Constants as C;
use SimpleSAML\XML\AbstractElement;

/**
* Abstract class to be implemented by all the classes in this namespace
*
* @see https://docs.oasis-open.org/security/saml/Post2.0/saml-async-slo/v1.0/saml-async-slo-v1.0.pdf
* @package simplesamlphp/saml2
*/
abstract class AbstractAlgElement extends AbstractElement
{
public const string NS = C::NS_ASLO;

public const string NS_PREFIX = 'aslo';

public const string SCHEMA = 'resources/schemas/saml-async-slo-v1.0.xsd';
}
Loading