Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839<?php
declare(strict_types=1);
namespace Wotnak\Atproto\Security;
/** * Applies deterministic policy checks to outbound URLs. * * Implementations validate URL syntax and literal hosts only. The configured * HTTP transport remains responsible for DNS, redirects, proxies, and the * actual network destination. * * @api */interface OutboundUrlPolicyInterface {
/** * Returns whether the URL is allowed for an AT Protocol service. */ public function isAllowedServiceUrl(string $url): bool;
/** * Rejects a disallowed allowed service url. */ public function assertAllowedServiceUrl(string $url): void;
/** * Returns whether the URL is an allowed HTTPS endpoint. */ public function isAllowedHttpsUrl(string $url): bool;
/** * Rejects a disallowed allowed https url. */ public function assertAllowedHttpsUrl(string $url): void;
}