Function: createProtectedResourceMetadataMiddleware()
createProtectedResourceMetadataMiddleware(
args):Middleware
Defined in: http-server-auth/src/oauthServer.ts:119
Koa middleware that serves GET /.well-known/oauth-protected-resource
(RFC 9728). Mount it before authMiddleware so the discovery endpoint
stays unauthenticated (clients fetch it before they have a token).
Parameters
| Parameter | Type | Description |
|---|---|---|
args | { authorizationServers: string[]; resource: string; } | - |
args.authorizationServers | string[] | Authorization server issuer URIs that issue tokens for this resource. |
args.resource | string | The protected resource's identifier URI. |
Returns
Middleware