Options
All
  • Public
  • Public/Protected
  • All
Menu

A validator that determines whether the input is a URL that is allowed by the Service Discovery whitelist as defined by the administrator. It extends SiteUrlValidator so site URL validation rules apply as well (i.e. the URL either matches a service connection, the site endpoint or one of its services).

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _serviceDiscovery

_serviceDiscovery: ServiceDiscoveryProvider

Reference to the service discovery API

app

Methods

Protected _allowUrl

  • _allowUrl(url: string): void

Protected _extractUrls

  • _extractUrls(text: string): string[]

Protected _initializeAllowedUrls

  • _initializeAllowedUrls(): Promise<void>

Protected _initializeDiscoveryProvider

  • _initializeDiscoveryProvider(): Promise<void>
  • Returns Promise<void>

Protected _isMatch

  • _isMatch(allowedUrl: Location, testUrl: Location): boolean
  • Parameters

    • allowedUrl: Location
    • testUrl: Location

    Returns boolean

Protected _validate

  • Parameters

    • value: string
    • Optional context: any

    Returns Promise<ValidationResult<string>>

executeClearTrustedUrls

  • executeClearTrustedUrls(): void

getDiscoveryProvider

setDiscoveryProvider

tryValidateSynchronously

  • tryValidateSynchronously(value: string): boolean

validate