| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function authenticateUserAction(Request $request) { |
||
|
|
|||
| 18 | /* |
||
| 19 | * Route called by ajax from other platforms to get user logged in on current platform |
||
| 20 | */ |
||
| 21 | if (!$this->get('security.authorization_checker')->isGranted('IS_AUTHENTICATED_FULLY')) { |
||
| 22 | // if user is not authenticated AccessDeniedException will trigger authentication on IDP |
||
| 23 | throw $this->createAccessDeniedException(); |
||
| 24 | } |
||
| 25 | |||
| 26 | return new \Symfony\Component\HttpFoundation\JsonResponse(['success'=>true]); |
||
| 27 | } |
||
| 28 | |||
| 47 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.