saml = $saml; } /** * Handle the event. * * @param Saml2LoginEvent $event * @return void */ public function handle(Saml2LoginEvent $event) { $messageId = $event->getSaml2Auth()->getLastMessageId(); // TODO: Add your own code preventing reuse of a $messageId to stop replay attacks $samlUser = $event->getSaml2User(); $attrs = $samlUser->getAttributes(); $id = $samlUser->getUserId(); //$assertion = $user->getRawSamlAssertion() $user = $this->saml->processLoginCallback($id, $attrs); } }