<?php
// Copyright (c) Pickware GmbH. All rights reserved.
// This file is part of software that is released under a proprietary license.
// You must not copy, modify, distribute, make publicly available, or execute
// its contents or parts thereof without express permission by the copyright
// holder, unless otherwise permitted by law.

namespace Shopware\Plugins\ViisonPickwareCommon\Classes;

use \Zend_Auth_Adapter_Interface as AuthAdapterInterface;
use \Zend_Auth_Result as AuthResult;

class NoCheckAuthAdapter implements AuthAdapterInterface
{
    /**
     * Returns an empty Zend auth result, having a SUCCESS status code.
     *
     * @return AuthResult
     */
    public function authenticate()
    {
        return new AuthResult(AuthResult::SUCCESS, [
            'username' => '',
            'realm' => '',
        ]);
    }
}
