2017 © Pedro Peláez
 

library raindrop-sdk

Hydro Raindrop SDK

image

adrenth/raindrop-sdk

Hydro Raindrop SDK

  • Tuesday, July 17, 2018
  • by adrenth
  • Repository
  • 3 Watchers
  • 4 Stars
  • 25 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Hydro Raindrop SDK PHP

This package provides a suite of convenience functions intended to simplify the integration of Hydro's Raindrop authentication into your project. More information, including detailed API documentation, is available in the Raindrop documentation., (*1)

Raindrop comes in two flavors:, (*2)

Client-side Raindrop

Client-side Raindrop is a next-gen 2FA solution. Hydro has open-sourced the code powering Client-side Raindrop., (*3)

Server-side Raindrop

Server-side Raindrop is an enterprise-level security protocol to secure APIs and other shared resources. Hydro has open-sourced the code powering Server-side Raindrop., (*4)

Installation instructions

composer require adrenth/raindrop-sdk, (*5)

Usage

$settings = new \Adrenth\Raindrop\ApiSettings(
    $clientId,
    $clientSecret,
    new SandboxEnvironment
);

// Create token storage for storing the API's access token.
$tokenStorage = new \Adrenth\Raindrop\TokenStorage\FileTokenStorage(__DIR__ . '/token.txt');

// Ideally create your own TokenStorage adapter. 
// The shipped FileTokenStorage is purely an example of how to create your own.

/*
 * Client-side calls
 */
$client = new \Adrenth\Raindrop\Client($settings, $tokenStorage, $applicationId);

// (Un)register a user by it's Hydro ID
$client->registerUser($hydroId);
$client->unregisterUser($hydroId);

// Generate 6 digit message
$message = $client->generateMessage();

// Verify signature
$client->verifySignature($hydroId, $message);

/*
 * Server-side calls
 */
$server = new \Adrenth\Raindrop\Server($settings, $tokenStorage);

$server->whitelist('0x..'); // Provide ETH address
$server->challenge('41579b51-c365-406e-86a8-3839fcad576f');
$server->authenticate('41579b51-c365-406e-86a8-3839fcad576f');

The Versions

17/07 2018

dev-master

9999999-dev

Hydro Raindrop SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth
by Ronald Drenth

17/07 2018

dev-develop

dev-develop

Hydro Raindrop SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth
by Ronald Drenth

17/07 2018

1.1.2

1.1.2.0

Hydro Raindrop SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth
by Ronald Drenth

17/07 2018

1.1.1

1.1.1.0

Hydro Raindrop SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth
by Ronald Drenth

17/07 2018

1.1.0

1.1.0.0

Hydro Raindrop SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth
by Ronald Drenth

12/07 2018

1.0.0

1.0.0.0

Hydro Raindrop SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alwin Drenth
by Ronald Drenth