setDigestResolver example

'realm' => 'Shopware REST-API',
            'digest_domains' => '/',
            'nonce_timeout' => 3600,
        ]);

        $adapter->setBasicResolver(
            new BasicAuthResolver(
                $this->get(ModelManager::class)
            )
        );

        $adapter->setDigestResolver(
            new StaticResolver(
                $this->get(ModelManager::class)
            )
        );

        $adapter->setRequest($this->request);
        $adapter->setResponse($this->response);

        $resource = Shopware_Components_Auth::getInstance();
        $storage = new Zend_Auth_Storage_NonPersistent();
        $resource->setBaseAdapter($adapter);
        
Home | Imprint | This part of the site doesn't use cookies.