@@ -10,7 +10,7 @@ |
||
| 10 | 10 | { |
| 11 | 11 | /** |
| 12 | 12 | * |
| 13 | - * @param type $request |
|
| 13 | + * @param Request $request |
|
| 14 | 14 | * @return \Symfony\Component\HttpFoundation\JsonResponse |
| 15 | 15 | * @throws type |
| 16 | 16 | */ |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 5 | 5 | use Symfony\Component\HttpFoundation\Request; |
| 6 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; |
|
| 7 | -use Symfony\Component\HttpFoundation\RedirectResponse; |
|
| 8 | 6 | |
| 9 | 7 | class SsoAuthenticationController extends Controller |
| 10 | 8 | { |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Symfony\Component\Config\FileLocator; |
| 7 | 7 | use Symfony\Component\DependencyInjection\Alias; |
| 8 | 8 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 9 | -use Symfony\Component\DependencyInjection\DefinitionDecorator; |
|
| 10 | 9 | use Symfony\Component\DependencyInjection\Exception\RuntimeException; |
| 11 | 10 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
| 12 | 11 | use Symfony\Component\DependencyInjection\Reference; |
@@ -71,6 +71,9 @@ |
||
| 71 | 71 | return $this->computeHash($this->buildUrl($url, $params)) === $hash; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $uri |
|
| 76 | + */ |
|
| 74 | 77 | private function computeHash($uri) |
| 75 | 78 | { |
| 76 | 79 | return urlencode(base64_encode(hash_hmac('sha256', $uri, $this->secret, true))); |