Skip to main content

Variable: ENTITY_IDENTIFIER_PATTERN

const ENTITY_IDENTIFIER_PATTERN: "^https://[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$"

Defined in: packages/contracts/src/schemas/federation.ts:92

An OpenID Federation entity identifier as this estate mints them: https:// and a hostname, with no port, path, query or trailing slash (D2.7: https://<slug>.identity.<domain>). Stricter than the specification allows, on purpose: one spelling per entity means a string comparison is an identity check.