public function handleSamlLoginRequest($request)
    {
        // Store RelayState to session if provided
        if (!empty($request->input('RelayState'))) {
            session()->put('RelayState', $request->input('RelayState'));
        }
        // Handle SamlRequest if provided, otherwise just exit
        if (isset($request->SAMLRequest)) {
            // Get and decode the SAML request
            $SAML = $request->SAMLRequest;
            $decoded = base64_decode($SAML);
            $xml = gzinflate($decoded);
            // Initiate context and authentication request object
            $deserializationContext = new \LightSaml\Model\Context\DeserializationContext();
            $deserializationContext->getDocument()->loadXML($xml);
            $authnRequest = new \LightSaml\Model\Protocol\AuthnRequest();
            $authnRequest->deserialize($deserializationContext->getDocument()->firstChild, $deserializationContext);
            // Generate the saml response (saml authentication attempt)
            $this->buildSamlResponse($authnRequest, $request);
        }
    }
public function handleSamlLoginRequest($request)
    {
        // Store RelayState to session if provided
        if (!empty($request->input('RelayState'))) {
            session()->put('RelayState', $request->input('RelayState'));
        }
        // Handle SamlRequest if provided, otherwise just exit
        if (isset($request->SAMLRequest)) {
            // Get and decode the SAML request
            $SAML = $request->SAMLRequest;
            $decoded = base64_decode($SAML);
            $xml = gzinflate($decoded);
            // Initiate context and authentication request object
            $deserializationContext = new \LightSaml\Model\Context\DeserializationContext();
            $deserializationContext->getDocument()->loadXML($xml);
            $authnRequest = new \LightSaml\Model\Protocol\AuthnRequest();
            $authnRequest->deserialize($deserializationContext->getDocument()->firstChild, $deserializationContext);
            // Generate the saml response (saml authentication attempt)
            $this->buildSamlResponse($authnRequest, $request);
        }
    }
public function handleSamlLoginRequest ( $ request ) { // Store RelayState to session if provided if ( ! empty ( $ request -> input ( 'RelayState' ) ) ) { session ( ) -> put ( 'RelayState' , $ request -> input ( 'RelayState' ) ) ; } // Handle SamlRequest if provided, otherwise just exit if ( isset ( $ request -> SAMLRequest ) ) { // Get and decode the SAML request $ SAML = $ request -> SAMLRequest ; $ decoded = base64_decode ( $ SAML ) ; $ xml = gzinflate ( $ decoded ) ; // Initiate context and authentication request object $ deserializationContext = new \ LightSaml \ Model \ Context \ DeserializationContext ( ) ; $ deserializationContext -> getDocument ( ) -> loadXML ( $ xml ) ; $ authnRequest = new \ LightSaml \ Model \ Protocol \ AuthnRequest ( ) ; $ authnRequest -> deserialize ( $ deserializationContext -> getDocument ( ) -> firstChild , $ deserializationContext ) ; // Generate the saml response (saml authentication attempt) $ this -> buildSamlResponse ( $ authnRequest , $ request ) ; } }
Handle an http request as saml authentication request. Note that the method
should only be called in case a saml request is also included.

@param  \Illuminate\Http\Request  $request
@return void
Handle an http request as saml authentication request . Note that the method should only be called in case a saml request is also included .