Skip to main content

Interface: OAuthHandlers

Defined in: auth-core/src/oauthServerTypes.ts:254

The runner-agnostic OAuth server handlers returned by createOAuthHandlers.

Properties

authorizationServerMetadata

authorizationServerMetadata: () => OAuthResponse

Defined in: auth-core/src/oauthServerTypes.ts:258

RFC 8414 Authorization Server Metadata response.

Returns

OAuthResponse


authorize

authorize: (request) => Promise<OAuthResponse>

Defined in: auth-core/src/oauthServerTypes.ts:262

Handle a GET /authorize request.

Parameters

ParameterType
requestOAuthRequest

Returns

Promise<OAuthResponse>


paths

paths: object

Defined in: auth-core/src/oauthServerTypes.ts:256

Resolved endpoint paths, for an adapter to mount routes on.

authorize

authorize: string

register

register: string

token

token: string


protectedResourceMetadata

protectedResourceMetadata: () => OAuthResponse | undefined

Defined in: auth-core/src/oauthServerTypes.ts:260

RFC 9728 Protected Resource Metadata response, or undefined if resource is unset.

Returns

OAuthResponse | undefined


register

register: (request) => Promise<OAuthResponse>

Defined in: auth-core/src/oauthServerTypes.ts:266

Handle a POST /register request (Dynamic Client Registration, RFC 7591).

Parameters

ParameterType
requestOAuthRequest

Returns

Promise<OAuthResponse>


token

token: (request) => Promise<OAuthResponse>

Defined in: auth-core/src/oauthServerTypes.ts:264

Handle a POST /token request (authorization_code + refresh_token grants).

Parameters

ParameterType
requestOAuthRequest

Returns

Promise<OAuthResponse>