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

autohost-riak-auth

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autohost-riak-auth

Riak backed auth provider for autohost

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

autohost riak auth

This library is a riak backed auth provider compliant with autohost v0.2.0's auth provider specification.

This library currently supports basic, OAuth2 (bearer) and generic token authorization headers. If no authorization header is present, a basic challenge is present.

usage

// see riaktive's README to see more information about how to configure pbc and http ports
// https://www.npmjs.org/package/riaktive
var host = require( 'autohost' );
var authProvider = require( 'autohost-riak-auth' )( {
		appName: 'myApp', 
		riak: { nodes: [
			{ host: 'riak-node1' },
			{ host: 'riak-node2' },
			{ host: 'riak-node3' },
		] } 
	} );
host.init( { /* autohost configuration goes here */ }, authProvider );

appName

This library requires you to provide an appName property in the configuration object that it will use as a bucket suffix to differentiate different application authentication and authorization data. There is no default value, you must provide one.

riak

As indicated by the comment above, the riak property is how you pass along configuration to riaktive which controls how this library will connect to your Riak nodes.

Keywords

FAQs

Package last updated on 15 Apr 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