@oidfed/oidc API
The package root exports the role classes and their OIDC and OAuth contracts. Import the shared types and authentication helpers below from @oidfed/core.
The class entries cover constructors and public members, including inherited instance methods and callable static properties. Metadata schema objects and standalone registration-processing functions are not root exports. Use role methods for processing and their static parsers for independent metadata checks.
A signature returning Result uses ok, value, and error. Metadata parsers instead use Zod's success, data, and error.issues. Some configuration, signing, and host-callback failures can throw or reject; the individual entries describe those cases.
Identifiers, results, and host contracts
| API | Kind |
|---|---|
EntityId |
Type; from @oidfed/core |
FederationError |
Type; from @oidfed/core |
FederationOptions |
Interface; from @oidfed/core |
Result |
Type; from @oidfed/core |
TrustAnchorSet |
Type; from @oidfed/core |
Standalone client and endpoint authentication is available through Core.
Metadata and wire types
Registration and protocol keys
| API | Kind |
|---|---|
AutomaticRegistrationResult |
Type |
ExplicitRegistrationResult |
Interface |
PreparedPushedAuthorizationRequest |
Interface |
ProcessAutomaticRegistrationOptions |
Interface |
ProcessedAutomaticRegistration |
Interface |
ProcessedPushedAuthorizationRequest |
Interface |
ProcessedRegistration |
Interface |
ProcessPushedAuthorizationRequestOptions |
Interface |
PushedAuthorizationProof |
Type |
RegistrationAccreditationContext |
Interface |
RegistrationAccreditationPolicy |
Interface |
RegistrationProtocolAdapter |
Interface |
RegistrationProtocolAdapterContext |
Interface |
RequestDelivery |
Type |
Protocol roles and configuration
| API | Kind |
|---|---|
CreateAuthorizationRequestOptions |
Interface |
OAuthAuthorizationServerRole |
Class |
OAuthAuthorizationServerRoleConfig |
Type |
OAuthClientRole |
Class |
OAuthClientRoleConfig |
Type |
OAuthResourceRole |
Class |
OAuthResourceRoleConfig |
Interface |
OidcProviderRole |
Class |
OidcProviderRoleConfig |
Interface |
OidcRelyingPartyRole |
Class |
OidcRelyingPartyRoleConfig |
Interface |