Download the PHP package juriandamen/laramultiauth-v2 without Composer

On this page you can find all versions of the php package juriandamen/laramultiauth-v2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laramultiauth-v2

LaraMultiAuth

Build Status Latest Stable Version

LaraMultiAuth aims to provide the easiest interfaces and hooks to add Multi Factor Authentication to your Laravel Application.

Requirements

Installation

Require this package with composer.

Since Laravel 5.5 Package Auto-Discovery exists so it doesn't require you to add the ServiceProvider to your app config anymore.

If you don't use auto-discovery, add the SerivceProvider to the providers array in config/app.php

If you want to use the LaraMultiAuth facade, add this to your facades in app.php:

Copy the views and migration to your local application with the publishing command:

Then run the migrations by executing the following command:

If you haven't already, make the default laravel Auth with the following command:

Then to the LoginController.php add the following function:

And add the HasTOTPAuth trait to your User model:

And register the routes by adding this to routes/web.php:

Usage

Routes

Method Route Controller Description
GET /login/multiauth \RSpeekenbrink\LaraMultiAuth\Http\Controllers\TOTPController@showTokenScreen Show the multi authentication login screen
POST /login/multiauth \RSpeekenbrink\LaraMultiAuth\Http\Controllers\TOTPController@verifyToken Verify posted token from multi authentication login screen
GET /multiauth/setup \RSpeekenbrink\LaraMultiAuth\Http\Controllers\TOTPController@showSetup (Requires user to be logged in) Shows screen to setup TOTP Authentication
POST /multiauth/setup \RSpeekenbrink\LaraMultiAuth\Http\Controllers\TOTPController@postSetup (Requires user to be logged in) Verifies and sets up TOTP Authentication for user
POST /multiauth/disable \RSpeekenbrink\LaraMultiAuth\Http\Controllers\TOTPController@disableMultiAuth (Requires user to be logged in) Disable TOTP Authentication for user

Disabling on Runtime

To disable Multi Auth you can always call LaraMultiAuth::disable() before the handle function.

Set custom redirect route

You can set the route users will get redirected to after login by calling:

where the /dashboard part is the path to redirect to.

Generating QR-Codes

For setting up TOTP authentication its often handy to be able to scan QR codes containing the secret than having to retype the secret on your device. This is easily achieveable, all you need is the Bacon QR Code Package (> v2.0.0) and the Imagick php extension. Once this package is installed the setup controller will automatically pass an inline QR code src to the setup view.

Custom Routes/Controller

Ofcourse it's possible to create your own routes and controllers. For that simply set the route for token verification via:

Source for verifying tokens and setting/removing tokens can be found in the TOTPController.

Testing

After installing the composer dev requirements the application can be tested by executing the following command from the project root directory:

Todo

There is still a lot to be done for this package. The aim for this package is to add multiple ways of multi authenticating your users. Now it only has the TOTP service available which allows users to enable Multi Authentication with an app like Google Authenticator or Authy. Future plans are to extend the package to support SMS services aswell and to make the implementation of Multi Authentication even easier for developers.


All versions of laramultiauth-v2 with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
christian-riesen/base32 Version ^1.3
illuminate/auth Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0
illuminate/console Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0
illuminate/container Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0
illuminate/contracts Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0
illuminate/database Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0
illuminate/encryption Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0
illuminate/routing Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0
illuminate/http Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0
illuminate/support Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package juriandamen/laramultiauth-v2 contains the following files

Loading the files please wait ....