2017 © Pedro Peláez
 

library clef

Implementation of Clef authentication in Laravel 4

image

caouecs/clef

Implementation of Clef authentication in Laravel 4

  • Wednesday, October 8, 2014
  • by caouecs
  • Repository
  • 2 Watchers
  • 6 Stars
  • 101 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel4-Clef

Bitdeli Badge, (*1)

Integrate the Clef.io tools in a Laravel project., (*2)

Installation

This package is available through Packagist and Composer., (*3)

Add "caouecs/clef": "dev-master" to your composer.json or run composer require caouecs/clef., (*4)

Then you have to add "Caouecs\Clef\Laravel4ClefServiceProvider" to your list of providers in your app/config/app.php, and a list of elements for aliases :, (*5)

'Clef' => 'Caouecs\Clef\Clef'

So, I recommend you use Package Installer, Laravel4-Clef has a valid provides.json file. After installation of Package Installer, just run php artisan package:install caouecs/clef ; the lists of providers and aliases will be up-to-date., (*6)

Next, you must migrate config :, (*7)

php artisan config:publish caouecs/clef

Configuration file

After installation, the config file is located at app/config/packages/caouecs/clef/clef.php., (*8)

You must define :, (*9)

  • the app_id of your application
  • the app_secret of your application

You can add an application in Clef.io., (*10)

Clef class

  • logout : response to Logout Webhook from Clef.io
  • authorize : return authorization from Clef.io for an account
  • info : return info about membre from Clef.io
  • authentication : get authentication of a Clef account
  • button : display button for Login, by javascript
  • customButtom : display custom button for Login

Example

In example directory, you can find three files :, (*11)

  • ClefController.php : examples for authentication and logout ( not finish for new account )
  • create_authentications_table.php : Authentication table
  • routes.php : routes for ClefController.php

The Versions

08/10 2014

dev-master

9999999-dev

Implementation of Clef authentication in Laravel 4

  Sources   Download

MIT

The Requires

 

laravel lpm clef

08/10 2014

0.2.0

0.2.0.0

Implementation of Clef authentication in Laravel 4

  Sources   Download

MIT

The Requires

 

laravel lpm clef

28/02 2014

0.1.0

0.1.0.0

Implementation of Clef authentication in Laravel 4

  Sources   Download

MIT

The Requires

 

laravel lpm clef