deno.land / x / oauth4webapi@v1.2.2 / docs / functions / protectedResourceRequest.md

protectedResourceRequest.md

Function: protectedResourceRequest

💗 Help the project

â–¸ protectedResourceRequest(accessToken, method, url, headers, body, options?): Promise<Response>

Performs a protected resource request at an arbitrary URL.

Authorization Header is used to transmit the Access Token value.

see RFC 6750 - The OAuth 2.0 Authorization Framework: Bearer Token Usage

see draft-ietf-oauth-dpop-10 - OAuth 2.0 Demonstrating Proof-of-Possession at the Application Layer (DPoP)

Parameters

Name Type Description
accessToken string The Access Token for the request.
method string The HTTP method for the request.
url URL Target URL for the request.
headers Headers Headers for the request.
body undefined | null | BodyInit Request body compatible with the Fetch API and the request's method.
options? ProtectedResourceRequestOptions -

Returns

Promise<Response>

oauth4webapi

Version Info

Tagged at
2 years ago