<?php
/**
 * No Authentication Strategy
 *
 * @category   WordPress_Plugin
 * @package    Common
 * @subpackage Strategies\Authentication
 * @author     miniOrange <info@miniorange.com>
 * @license    MIT/Expat
 * @link       https://plugins.miniorange.com/woocommerce-api-product-sync-with-woocommerce-rest-apis
 */

namespace MOWCPS\Common\Strategies\Authentication;

use MOWCPS\Common\Abstracts\Auth_Base_Strategy;

if ( ! defined( 'ABSPATH' ) ) {
	die;
}

/**
 * Class NoAuth_Strategy
 *
 * Handles no authentication scenarios
 */
class No_Auth_Strategy extends Auth_Base_Strategy {
	/**
	 * Generate authorization headers
	 *
	 * @param int   $supplier_id Supplier ID.
	 * @param array $settings Auth settings.
	 * @return array Empty headers array
	 */
	public function generate_headers( $settings, $supplier_id ) {
		// No auth means no headers needed.
		return array();
	}

	/**
	 * Validate auth settings
	 *
	 * @param array $settings Auth settings.
	 * @return bool Always true for no auth
	 */
	public function validate_settings( $settings ) {
		// No auth doesn't require any settings validation.
		return true;
	}
}
