Giter VIP home page Giter VIP logo

expauth's Introduction

Scrutinizer Code Quality Build Status Code Coverage Packagist License

#Laravel 5 Expression Engine User Authentication

Allows you to switch your Expression Engine website to Laravel, by handling the authentication of Expression Engine members. This package allows you to easily build a front end in Laravel for Expression Engine websites, without worrying about how existing members logins and registrations will work.

For Laravel 5.2 support, please checkout the 5.2 branch.

What it does

Expression Engine uses a number of different hashing algorithms, such as SHA512, SHA256, SHA1 and even MD5 (shudder), whilst Laravel 5 uses the much more secure bcrypt.

This package will allow your existing Expression Engine members to log in with their existing login credentials, and new users can benefit from having their data hashed with the latest bcrypt algorithm.

Furthermore, once an Expression Engine user has logged in, it's very easy to switch them over to bcrypt encryption as the needsRehash() method will always return true for Expression Engine members.

Installation

In your composer.json file, add:

    "require": {
       "drawmyattention/expauth": "1.1.*"
    }

Then, in config/app.php add

    'DrawMyAttention\ExpAuth\ExpressionEngineUserServiceProvider',
    'DrawMyAttention\ExpAuth\ExpressionEngineHasherServiceProvider',

and (optionally) comment out

    //'Illuminate\Hashing\HashServiceProvider',

In config/auth.php, change

    'driver' => 'eloquent',

to

    'driver' => 'ExpressionEngineAuth',

In your User model, make sure that you set the table and primary key fields as per the Expression Engine schema:

    protected $table = 'exp_members';
	protected $primaryKey = 'member_id';

and that's it!

Usage

Authentication works in exactly the same way as Laravel's regular auth methods.

Licence and credit

This package is open-sourced software licensed under the MIT license. Many thanks to the original package (pixelfusion/ExpAuth) upon which this was based, by PixelFusion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.