Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

collective-oauth-server

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collective-oauth-server

Handle Widen Collective OAuth and host static files

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
increased by1100%
Maintainers
1
Weekly downloads
 
Created
Source

node-collective-oauth-server

Simple OAuth2.0 server for communicating with the Widen Media Collective's REST API.

Licensecollective-oauth-server

Installing

Local

This works best when node-collective-oauth-server is a dependency of your project:

npm install --save collective-oauth-server

Global

This works best when you just want to try node-collective-oauth-server, or get a simple OAuth2 server for Collective started ASAP.

npm install -g collective-oauth-server

Executing

Local

Then you can:

Programatically:

a)

var collective_server = require('collective-oauth-server').server;
var server = collective_server(opts);
server.listen();

b)

From command line:

./node_modules/.bin/collective-oauth-server

c)

In package.son:

"scripts": {
    "start": "collective-auth-server"
}

Global

From command line:

collective-oauth-server

Usage

usage: collective-oauth-server [OPTIONS]
options:
    --host=ARG, --hostname=ARG          The the local host to run as (default:
                                        localhost). Environment: HOSTNAME=ARG
    -p NUM, --port=NUM                  The local port to run as (default: 80).
                                        Environment: PORT=NUM
    --collective-protocol=ARG           The Widen Collective protocol (default:
                                        https). Environment:
                                        COLLECTIVE_PROTOCOL=ARG
    --collective-host=ARG               The Widen Collective host (default:
                                        demo.widencollective.com). Environment: COLLECTIVE_HOST=ARG
    --collective-port=NUM               The Widen Collective port (default: 80).
                                        Environment: COLLECTIVE_PORT=NUM
    --username=ARG, --client-id=ARG, --collective-client-id=ARG
                                        OAuth client id. Suggested to use
                                        environment variables instead.
                                        Environment:     --username=ARG, --client-id=ARG, --collective-client-id=ARG
                                        OAuth client id. Suggested to use
                                        environment variables instead.
                                        Environment: COLLECTIVE_CLIENT_ID=ARG
    --password=ARG, --client-secret=ARG, --collective-client-secret=ARG
                                        OAuth client secret. Suggested to use
                                        environment variables instead.
                                        Environment:
                                            --password=ARG, --client-secret=ARG, --collective-client-secret=ARG
                                        OAuth client secret. Suggested to use
                                        environment variables instead.
                                        Environment:
                                        COLLECTIVE_CLIENT_SECRET=ARG
    --static=ARG                        Path to host static files from (default:
                                        ./static). Environment:
                                        COLLECTIVE_STATIC=ARG
    -v, --verbose                       Verbose output. Use multiple times for
                                        more verbose.
    --version                           Print version and exit.
    -h, --help               

Keywords

FAQs

Package last updated on 26 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc