2017 © Pedro Peláez
 

library oauth-server-php-client

API Wrapper for the Netsensia authentication server

image

chris-moreton/oauth-server-php-client

API Wrapper for the Netsensia authentication server

  • Tuesday, April 18, 2017
  • by Chrismo2012
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,475 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

oAuth2 Server PHP Client

Build Status, (*1)

This is a PHP client for the Netsensia authentication server (chris-moreton/oauth-server)., (*2)

Add to project using Composer

composer require chris-moreton/oauth-server-php-client, (*3)

Usage

$client = new Client($apiUri, $token);

oAuth2 Password grant

$response = $client->passwordGrant($email, $password, $clientId, $clientSecret, $scope)

Client Credentials Grant

$response = $client->clientGrant($clientId, $clientSecret, $scope)

Password Check

$response = $client->verifyPassword($email, $password)

Create User

$response = $client->createUser(['email'=>'test@example.com', 'name'=>'Test', 'password'=>'secret'])

Get User Details

$response = $client->getUserDetails($userId)

Update User

$response = $client->updateUserDetails($userId, ['email'=>'test@example.com', 'name'=>'Test', 'password'=>'secret', 'remember_token'=>'abcd1234'])

Get User Token Details

$response = $client->userTokenDetails()

Get Scopes from Client Credentials Token

$response = $client->tokenScopes()

Development

Clone the repo and compose

git clone git@github.com:chris-moreton/oauth-server-php-client
cd oauth-server-php-client
composer install

Run the tests

cp spec/.env.example spec/.env 

and fill in the values., (*4)

Then you can run the tests:, (*5)

bin/phpspec run --format=pretty -vvv --stop-on-failure

The Versions

18/04 2017

dev-master

9999999-dev

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

08/04 2017

v0.2.8

0.2.8.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

31/03 2017

v0.2.7

0.2.7.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

31/03 2017

v0.2.6

0.2.6.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

31/03 2017

v0.2.5

0.2.5.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2017

v0.2.4

0.2.4.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2017

v0.2.3

0.2.3.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

20/03 2017

dev-WorkInProgress

dev-WorkInProgress

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

27/02 2017

v0.2.2

0.2.2.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

27/02 2017

v0.2.1

0.2.1.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

26/02 2017

v0.2.0

0.2.0.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

26/02 2017

v0.1.0

0.1.0.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

26/02 2017

v0.0.4

0.0.4.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

24/02 2017

v0.0.3

0.0.3.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

23/02 2017

v0.0.2

0.0.2.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires

23/02 2017

v0.0.1

0.0.1.0

API Wrapper for the Netsensia authentication server

  Sources   Download

MIT

The Requires

 

The Development Requires