From ce24d0ddda098d8293ad34139120319182b1f4e3 Mon Sep 17 00:00:00 2001 From: Marius BILASCO Date: Fri, 28 Feb 2014 21:03:35 +0100 Subject: [PATCH 1/2] correcting unserialize on SsoToken $this->provider present by $this->manager required --- Security/Core/Authentication/Token/SsoToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security/Core/Authentication/Token/SsoToken.php b/Security/Core/Authentication/Token/SsoToken.php index 78d2197..c59f744 100644 --- a/Security/Core/Authentication/Token/SsoToken.php +++ b/Security/Core/Authentication/Token/SsoToken.php @@ -85,7 +85,7 @@ public function serialize() public function unserialize($str) { - list($this->credentials, $this->provider, $parentStr) = unserialize($str); + list($this->credentials, $this->manager, $parentStr) = unserialize($str); parent::unserialize($parentStr); } } From baf71eb4ddcc8a7873afbb1efa5dc786ce8d605e Mon Sep 17 00:00:00 2001 From: Marius BILASCO Date: Fri, 28 Feb 2014 21:17:17 +0100 Subject: [PATCH 2/2] BeSimpleSsoAuthBundle/Security/Core/Authentication/Provider/SsoAuthenticationProvider.php - a throw used 4 parameters instead of 3 as required --- .../Authentication/Provider/SsoAuthenticationProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Security/Core/Authentication/Provider/SsoAuthenticationProvider.php b/Security/Core/Authentication/Provider/SsoAuthenticationProvider.php index 68d7b5b..aaf4fa1 100644 --- a/Security/Core/Authentication/Provider/SsoAuthenticationProvider.php +++ b/Security/Core/Authentication/Provider/SsoAuthenticationProvider.php @@ -147,8 +147,8 @@ protected function retrieveUser($username) } catch (UsernameNotFoundException $notFound) { throw $notFound; } catch (\Exception $repositoryProblem) { - throw new AuthenticationServiceException($repositoryProblem->getMessage(), $username, 0, $repositoryProblem); - } + throw new AuthenticationServiceException($username." : ".$repositoryProblem->getMessage(),0, $repositoryProblem); + } return $user; }