Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Latest commit

 

History

History
35 lines (21 loc) · 1.02 KB

File metadata and controls

35 lines (21 loc) · 1.02 KB

Client Credentials Grant Example

Client Credentials Grant flow does not require a user to sign into OCLC in order to receive an Access Token. This flow assumes the client has already validated the user.

See Client Credentials Grant at the OCLC Developer Network for more details.

Usage

Make a directory to work in and change to it.

git clone https://github.com/OCLC-Developer-Network/oclc-auth-node.git

cd oclc-auth-node

npm install

cd examples/clientCredentialsGrant

npm install

cd src

Edit server.js and define your authentication parameters.

Save the file with your authentication parameters.

Run the server.

node server

Navigate to localhost:8000

This example allows you to request a Bibliographic Record using your token, provided your key is scoped for "WorldCatMetadataAPI".