Skip to main content

validate_https_public_uri

Function validate_https_public_uri 

Source
pub fn validate_https_public_uri(
    uri: &str,
    label: &str,
) -> Result<(), AuthError>
Expand description

Validates that uri is a public HTTPS endpoint safe for outbound requests.

Rules:

  • Scheme must be https
  • Host must not be a loopback or RFC-1918 private address