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

omniauth-yoyow

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omniauth-yoyow

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Omniauth YOYOW

中文 En

This is the official OmniAuth strategy for authenticating to YOYOW. To use it, a platform account is needed(what's platform), addtionally, you'll need to setup yoyow-middleware.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-yoyow'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-yoyow

Usage

Change the url to yoyow-middleware server address in following code.

use OmniAuth::Builder do
  provider :yoyow, 'http://localhost:3000'
end

Setup YOYOW Middleware

Clone the middleware code:

git clone https://github.com/yoyow-org/yoyow-node-sdk/tree/master/middleware
cd middleware
vim conf/config.js

YOYOW test-net configuration is recommended while developing your applaction, you can switch it to main-net when production ready.

Sample config for test-net:

module.exports = {
    // yoyow full node api(test-net)
    apiServer: "ws://47.52.155.181:10011",
    // seconds before requests invaild
    secure_ageing: 120,
    // platform specified secure key
    secure_key: "",
    // active key of platform(optional)
    active_key: "",
    // secondary key of platform(required)
    secondary_key: "",
    // memo key of platform(optional)
    memo_key: "",
    // platform id(yoyow id)
    platform_id: "",
    // choose to use csaf when transfer token
    use_csaf: true,
    // transfer token to balance, otherwise to Tipping
    to_balance: false,
    // authorization URL
    wallet_url: "http://demo.yoyow.org:8000/#/authorize-service",
    // IP list allowed to access
    allow_ip: ["localhost", "127.0.0.1"]
};

Sample config for main-net:

module.exports = {
    // yoyow full node api(main-net)
    apiServer: "wss://wallet.yoyow.org/ws",
    ...
    // authorization URL
    wallet_url: "http://wallet.yoyow.org/#/authorize-service",
    // IP list allowed to access
    allow_ip: ["localhost", "127.0.0.1"]
};

FAQs

Package last updated on 29 Oct 2018

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