public function verifyAction()
    {
        $server = $this->get('oauth2.server');

        if (!$server->verifyResourceRequest($this->get('oauth2.request'), $this->get('oauth2.response'))) {
            return $server->getResponse();
        }

        $tokenData = $server->getAccessTokenData($this->get('oauth2.request'), $this->get('oauth2.response'));

        return new JsonResponse($tokenData);
    }
public function verifyAction()
    {
        $server = $this->get('oauth2.server');

        if (!$server->verifyResourceRequest($this->get('oauth2.request'), $this->get('oauth2.response'))) {
            return $server->getResponse();
        }

        $tokenData = $server->getAccessTokenData($this->get('oauth2.request'), $this->get('oauth2.response'));

        return new JsonResponse($tokenData);
    }
public function verifyAction ( ) { $ server = $ this -> get ( 'oauth2.server' ) ; if ( ! $ server -> verifyResourceRequest ( $ this -> get ( 'oauth2.request' ) , $ this -> get ( 'oauth2.response' ) ) ) { return $ server -> getResponse ( ) ; } $ tokenData = $ server -> getAccessTokenData ( $ this -> get ( 'oauth2.request' ) , $ this -> get ( 'oauth2.response' ) ) ; return new JsonResponse ( $ tokenData ) ; }
This is called with an access token, details
about the access token are then returned.
Used for verification purposes.

@Route("/verify", name="_verify_token")
This is called with an access token details about the access token are then returned . Used for verification purposes .