All Projects → mpociot → Laravel Face Auth

mpociot / Laravel Face Auth

Licence: mit
Laravel Face authentication

Labels

Projects that are alternatives of or similar to Laravel Face Auth

Laravel Queue Monitor
Monitoring Laravel Jobs with your Database
Stars: ✭ 136 (-2.16%)
Mutual labels:  laravel
Laravel Backend
Backend for Laravel 4
Stars: ✭ 137 (-1.44%)
Mutual labels:  laravel
Maravel Permissions
Because in the Maravelous univer every user deserves super power
Stars: ✭ 139 (+0%)
Mutual labels:  laravel
Laravel Hashslug
Package providing a trait to use Hashids on a model
Stars: ✭ 136 (-2.16%)
Mutual labels:  laravel
Laravel Language
Language switcher package for Laravel
Stars: ✭ 137 (-1.44%)
Mutual labels:  laravel
Laravel Analytics Event Tracking
Laravel package to easily send events to Google Analytics
Stars: ✭ 137 (-1.44%)
Mutual labels:  laravel
Azuriom
Azuriom is a modern, reliable, fast and secure game CMS.
Stars: ✭ 135 (-2.88%)
Mutual labels:  laravel
Jigsaw
Simple static sites with Laravel’s Blade.
Stars: ✭ 1,823 (+1211.51%)
Mutual labels:  laravel
Laravel Dotenv Editor
The .env file editor tool for Laravel 5.8+
Stars: ✭ 137 (-1.44%)
Mutual labels:  laravel
Laravel Fractal
An easy to use Fractal wrapper built for Laravel and Lumen applications
Stars: ✭ 1,748 (+1157.55%)
Mutual labels:  laravel
Laravel Ssh Tunnel
Easy creation & maintenance of an SSH Tunnel for Laravel/Lumen
Stars: ✭ 134 (-3.6%)
Mutual labels:  laravel
Laravel Deletable
👾 Gracefully restrict deletion of Laravel Eloquent models
Stars: ✭ 137 (-1.44%)
Mutual labels:  laravel
Laravel Api Explorer
API explorer for laravel applications
Stars: ✭ 138 (-0.72%)
Mutual labels:  laravel
Blade Extensions
Laravel Blade Extension Classes for Laravel 5
Stars: ✭ 136 (-2.16%)
Mutual labels:  laravel
Config
Manage Laravel configuration by persistent storage
Stars: ✭ 139 (+0%)
Mutual labels:  laravel
Laravel Authz
An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.
Stars: ✭ 136 (-2.16%)
Mutual labels:  laravel
Laravel Easypanel
A beautiful and flexible admin panel creator based on Livewire for Laravel
Stars: ✭ 135 (-2.88%)
Mutual labels:  laravel
Ignition
A beautiful error page for Laravel apps
Stars: ✭ 1,885 (+1256.12%)
Mutual labels:  laravel
Laravel5 Angular Material Starter
Get started with Laravel 5.3 and AngularJS (material)
Stars: ✭ 1,692 (+1117.27%)
Mutual labels:  laravel
Hunt
This is laravel 5.5 + pjax the Hunt
Stars: ✭ 138 (-0.72%)
Mutual labels:  laravel

Laravel Face authentication

This package uses Microsoft's cognitive API to identify faces instead of passwords for your Laravel application.

Disclaimer

Any kind of Face Recognition, using the camera of the device as a form of Authentication is flawed. You only need to hold a good photo in front of the camera to by pass it. Using this for authentication is like shooting in your own foot and contributing for a more insecure web.

Please do not use face recognition as an alternative for password authentication in a production system!

Installation

You can install the package via Composer:

$ composer require mpociot/laravel-face-auth

Add the service provider to your config/app.php:

Mpociot\FaceAuth\FaceAuthServiceProvider::class,

In your config/auth.php, change the auth driver to faceauth:

'providers' => [
    'users' => [
        'driver' => 'faceauth',
        'model' => App\User::class,
    ],
]

Publish the configuration:

$ php artisan vendor:publish --provider="Mpociot\FaceAuth\FaceAuthServiceProvider"

Edit the newly published config/faceauth.php file and enter your Face API key.

Usage and authorization

The face authentication works, by using a reference image of your user and matching it against a uploaded image upon login. So this pretty much is the same flow as comparing two password hashes.

When you register your users, you need to make sure that you store a photo of the users face - this is basically his password.

In order for this package, to find the user photo, your User model needs to implement the FaceAuthenticatable interface.

This interface only has one single public method getFaceAuthPhoto(). This method needs to return the content of the user photo.

Example:

class User extends Authenticatable implements FaceAuthenticatable
{

    public function getFaceAuthPhoto()
    {
        return File::get(storage_path('facces') . $this->id . '.png');
    }
    
}

Your login form now needs a photo field (the name can be configured) - this field should contain a base64 representation of the image, the user uses to log in.

If you want a simple way to capture the user image from the webcam, take a look at the vue-webcam Vue.js component.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].