Skip to content
Snippets Groups Projects
Select Git revision
  • 521c1d731472731e13f4b6e5c54f91a70464f455
  • master default protected
  • cesnet_simplesamlphp-1.19.8
  • elixir_simplesamlphp-1.19.8
  • simplesamlphp-1.19.8
  • cesnet_simplesamlphp-1.19.5
  • simplesamlphp-2.0
  • feature/assets
  • feature/rac-source-selector
  • cleanup/remove-base64-attributes
  • simplesamlphp-1.19
  • elixir_simplesamlphp-1.19.5
  • aarc_idp_hinting
  • feature/validate-authstate-before-processing
  • feature/build-two-tarballs
  • dependabot/composer/twig/twig-3.4.3
  • tvdijen-patch-1
  • unchanged-acs-url-no-www-script
  • feature/translation-improvements
  • symfony6
  • move_tests
  • v1.19.9
  • v2.1.3
  • v2.0.10
  • v2.1.2
  • v2.0.9
  • v2.1.1
  • v2.0.8
  • v2.1.0
  • v2.0.7
  • v2.1.0-rc1
  • v2.0.6
  • v2.0.5
  • 2.0.4-alpha.1
  • v2.0.4-alpha.1
  • v2.0.4
  • v2.0.3
  • v2.0.2
  • v2.0.1-alpha.1
  • v2.0.1
  • v1.19.8
41 results

LogoutHandler.php

Blame
  • user avatar
    Jaime Perez Crespo authored
    521c1d73
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    LogoutHandler.php 1.36 KiB
    <?php
    
    
    /**
     * Base class for logout handlers.
     *
     * @package SimpleSAMLphp
     */
    abstract class SimpleSAML_IdP_LogoutHandler
    {
    
        /**
         * The IdP we are logging out from.
         *
         * @var SimpleSAML_IdP
         */
        protected $idp;
    
    
        /**
         * Initialize this logout handler.
         *
         * @param SimpleSAML_IdP $idp The IdP we are logging out from.
         */
        public function __construct(SimpleSAML_IdP $idp)
        {
            $this->idp = $idp;
        }
    
    
        /**
         * Start a logout operation.
         *
         * This function must never return.
         *
         * @param array &$state The logout state.
         * @param string|null $assocId The association that started the logout.
         */
        abstract public function startLogout(array &$state, $assocId);
    
    
        /**
         * Handles responses to our logout requests.
         *
         * This function will never return.
         *
         * @param string $assocId The association that is terminated.
         * @param string|null $relayState The RelayState from the start of the logout.
         * @param SimpleSAML_Error_Exception|null $error The error that occurred during session termination (if any).
         */
        public function onResponse($assocId, $relayState, SimpleSAML_Error_Exception $error = null)
        {
            assert('is_string($assocId)');
            assert('is_string($relayState) || is_null($relayState)');
            // don't do anything by default
        }
    }