2017 © Pedro Peláez
 

library laravel-magic-auth

Authenticate users using a magic link

image

soved/laravel-magic-auth

Authenticate users using a magic link

  • Sunday, June 24, 2018
  • by sander3
  • Repository
  • 1 Watchers
  • 1 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Authenticate users using a magic link

Fast and secure passwordless authentication for the masses., (*1)

Scrutinizer Code Quality Latest Stable Version Monthly Downloads License, (*2)

Buy me a coffee ☕️, (*3)

Requirements

  • PHP >= 7.1.3
  • Laravel >= 5.6, 6.0 or 7.0

Installation

First, install the package via the Composer package manager:, (*4)

$ composer require soved/laravel-magic-auth

After installing the package, you should publish the configuration file:, (*5)

$ php artisan vendor:publish --tag=magic-auth-config

Add the Soved\Laravel\Magic\Auth\Contracts\CanMagicallyLogin interface to the App\User model:, (*6)

<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Soved\Laravel\Magic\Auth\Traits\CanMagicallyLogin;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Soved\Laravel\Magic\Auth\Contracts\CanMagicallyLogin as CanMagicallyLoginContract;

class User extends Authenticatable implements CanMagicallyLoginContract
{
    use Notifiable, CanMagicallyLogin;
}

Finally, add the Soved\Laravel\Magic\Auth\Traits\CanMagicallyLogin trait to the App\User model to implement the interface., (*7)

Usage

This package exposes two endpoints, one to request a magic link (magic/email) and one to authenticate using the magic link (magic/login). Your application should make a POST call, containing the user's email address, to request a magic link. The magic link will be send via email using a notification. Feel free to customize the notification by overriding the CanMagicallyLogin@sendMagicLinkNotification method., (*8)

Middleware

You may want to register the Soved\Laravel\Magic\Auth\Http\Middleware\AuthenticateWithMagicLink middleware to ensure users are authenticated via a magic link., (*9)

Security Vulnerabilities

If you discover a security vulnerability within this project, please send an e-mail to Sander de Vos via sander@tutanota.de. All security vulnerabilities will be promptly addressed., (*10)

License

This package is open-source software licensed under the MIT license., (*11)

The Versions

24/06 2018

dev-master

9999999-dev

Authenticate users using a magic link

  Sources   Download

MIT

The Requires

 

by Sander de Vos

laravel authentication encryption soved magic-authentication

24/06 2018

v1.0.0

1.0.0.0

Authenticate users using a magic link

  Sources   Download

MIT

The Requires

 

by Sander de Vos

laravel authentication encryption soved magic-authentication

17/06 2018

v1.0.0-rc1

1.0.0.0-RC1

Authenticate users using a magic link

  Sources   Download

MIT

The Requires

 

by Sander de Vos