Skip to content

Automattic/node-wpcom-oauth

Folders and files

Image for: Folders and files
NameName
Last commit message
Last commit date

Latest commit

Image for: Latest commit
 

History

Image for: History
104 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image for: Repository files navigation

wpcom-oauth

WordPress.com OAuth2 server-side authorization module for Node.js.

The client-side counterpart to this module is wpcom-oauth-cors.

Installation

Image for: Installation
$ npm install wpcom-oauth

API

Image for: API

WPOAuth#urlToConnect(resource)

Return the url that points to first step for get the access token.

WPOAuth#code(code)

Set the code to request the access token.

WPOAuth#requestAccessToken(fn)

Start the OAuth2 request to WordPress.com and execute the callback function when it's done.

Simple example application

Image for: Simple example application

See the example documentation to run the app

License

Image for: License

MIT – Copyright 2014 Automattic

About

Image for: About

WordPress.com OAuth2 authorization module for Node.js

Resources

License

Stars

Watchers

Forks

Packages

Image for: Packages 0
No packages published

Contributors 7

Image for: Contributors 7