src/Saml.php
protected function receiveMessage()
    {
        if (empty($_POST)) {
            $_POST = $this->retrievePostWithInputStream();
        }

        $request = Request::createFromGlobals();

        try {
            $binding = (new BindingFactory())->getBindingByRequest($request);
        } catch (\Exception $e) {
            return null;
        }

        $context = new MessageContext();
        $binding->receive($request, $context);

        return $context;
    }
protected function receiveMessage()
    {
        if (empty($_POST)) {
            $_POST = $this->retrievePostWithInputStream();
        }

        $request = Request::createFromGlobals();

        try {
            $binding = (new BindingFactory())->getBindingByRequest($request);
        } catch (\Exception $e) {
            return null;
        }

        $context = new MessageContext();
        $binding->receive($request, $context);

        return $context;
    }
protected function receiveMessage ( ) { if ( empty ( $ _POST ) ) { $ _POST = $ this -> retrievePostWithInputStream ( ) ; } $ request = Request :: createFromGlobals ( ) ; try { $ binding = ( new BindingFactory ( ) ) -> getBindingByRequest ( $ request ) ; } catch ( \ Exception $ e ) { return null ; } $ context = new MessageContext ( ) ; $ binding -> receive ( $ request , $ context ) ; return $ context ; }
Receive Saml message from globals variables

@return MessageContext
Receive Saml message from globals variables