@oidfed/core API
Every entry below is exported from @oidfed/core; there are no public subpath imports. Class entries cover constructors and library-defined public members. Standard Error inheritance is noted beside error classes.
Signatures preserve optional and read-only declarations. An optional property is marked with ?; undefined is included in its declared type only when the source allows it explicitly. Schema field tables describe parsed output, which can differ from raw input. Parsing, decoding, signature verification, and establishing trust are separate steps; each entry states which work it performs.
Storage
Storage contracts cover FederationStorage and MemoryFederationStorage. See also the storage migration guide.
Identifiers, results, and host contracts
Client and endpoint authentication
Entity Statements and signatures
Keys, rollover, and protocol JWKS
| API | Kind |
|---|---|
EntityKeysSource |
Type |
fetchJwkSet |
Function |
fetchSignedJwkSet |
Function |
FetchSignedJwkSetOptions |
Interface |
isValidAlgorithm |
Function |
JWK_PUBLIC_FIELDS |
Value |
jwkThumbprint |
Function |
preparePublicJwkSet |
Function |
ResolvedEntityKeys |
Interface |
resolveEntityKeys |
Function |
ResolveEntityKeysOptions |
Interface |
selectVerificationKey |
Function |
stripPrivateFields |
Function |
timingSafeEqual |
Function |
validateFederationKeySet |
Function |
validateJwkSetUseRequirement |
Function |
validatePublicJwkSet |
Function |
validateSignedJwkSetSpecHygiene |
Function |
Federation endpoint clients and responses
Discovery, chain validation, and assessments
Metadata policies and constraints
| API | Kind |
|---|---|
applyAllowedEntityTypes |
Function |
applyMetadataPolicy |
Function |
checkConstraints |
Function |
checkMaxPathLength |
Function |
checkNamingConstraints |
Function |
MetadataPolicyOptions |
Interface |
operators |
Value |
resolveMetadataPolicy |
Function |
validateCustomOperators |
Function |
validateMetadataPolicy |
Function |
Trust Marks
Entity Collection
| API | Kind |
|---|---|
CollectionAuthentication |
Interface |
CollectionEntry |
Interface |
CollectionRefreshOptions |
Interface |
CollectionRefreshResult |
Interface |
EntityCollectionCandidate |
Interface |
EntityCollectionCollector |
Type |
EntityCollectionCollectorContext |
Interface |
EntityCollectionConfig |
Interface |
EntityCollectionCursor |
Interface |
EntityCollectionCursorCapacityError |
Class |
EntityCollectionFilter |
Type |
EntityCollectionIntegration |
Type |
EntityCollectionQueryMatcher |
Type |
EntityCollectionService |
Class |
EntityCollectionSnapshot |
Interface |
EntityCollectionStore |
Interface |
Schemas and wire types
Protocol constants and defaults
The shared crypto service and contracts cover JwsService, CryptoContext, BoundFederationOptions, SigningPurposes, historicalKeysFromKeyring, and portable data helpers.