Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/core / / OAuthServerRecord

Interface: OAuthServerRecord

Defined in: packages/core/src/contracts/oauth-server-store.ts:12

Persisted metadata for an OAuth server registration. The framework never stores raw token material here — the access, refresh, id, and client-secret tokens live in the SecretsStore and this record only holds the SecretRef URIs that resolve them.

Schema mirrors the canonical oauth_servers SQLite table provided by @graphorin/store-sqlite.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
accessTokenRef?readonlystringSecretRef URI for the access token.packages/core/src/contracts/oauth-server-store.ts:34
authorizationEndpoint?readonlystringAuthorization-server authorization_endpoint.packages/core/src/contracts/oauth-server-store.ts:18
clientIdreadonlystringPublic client identifier; safe to log.packages/core/src/contracts/oauth-server-store.ts:30
clientSecretRef?readonlystringSecretRef URI for the confidential-client secret.packages/core/src/contracts/oauth-server-store.ts:32
createdAtreadonlynumberEpoch milliseconds when the record was first created.packages/core/src/contracts/oauth-server-store.ts:52
deviceAuthorizationEndpoint?readonlystringAuthorization-server device_authorization_endpoint (RFC 8628).packages/core/src/contracts/oauth-server-store.ts:26
expiresAt?readonlynumberEpoch milliseconds when the access token stops being valid.packages/core/src/contracts/oauth-server-store.ts:40
idreadonlystringStable, human-readable identifier (e.g. 'linear-mcp').packages/core/src/contracts/oauth-server-store.ts:14
idTokenRef?readonlystringSecretRef URI for the OIDC ID token.packages/core/src/contracts/oauth-server-store.ts:38
issuer?readonlystringIssuer identifier reported in the discovery response.packages/core/src/contracts/oauth-server-store.ts:28
lastRefreshedAt?readonlynumberEpoch milliseconds of the last successful refresh.packages/core/src/contracts/oauth-server-store.ts:48
lastRefreshError?readonlystringLast error string captured from a failing refresh attempt.packages/core/src/contracts/oauth-server-store.ts:50
redirectUri?readonlystringRedirect URI that was used during the most recent code flow.packages/core/src/contracts/oauth-server-store.ts:44
refreshTokenRef?readonlystringSecretRef URI for the refresh token.packages/core/src/contracts/oauth-server-store.ts:36
registeredVia?readonly"dcr" | "manual"Whether the client was registered via Dynamic Client Registration.packages/core/src/contracts/oauth-server-store.ts:46
registrationEndpoint?readonlystringAuthorization-server registration_endpoint (RFC 7591).packages/core/src/contracts/oauth-server-store.ts:22
revocationEndpoint?readonlystringAuthorization-server revocation_endpoint (RFC 7009).packages/core/src/contracts/oauth-server-store.ts:24
scope?readonlystringGranted scopes (space-separated string per the OAuth spec).packages/core/src/contracts/oauth-server-store.ts:42
serverUrlreadonlystringBase URL of the OAuth-protected resource server (e.g. MCP endpoint).packages/core/src/contracts/oauth-server-store.ts:16
tokenEndpoint?readonlystringAuthorization-server token_endpoint.packages/core/src/contracts/oauth-server-store.ts:20
updatedAtreadonlynumberEpoch milliseconds when the record was last updated.packages/core/src/contracts/oauth-server-store.ts:54