Download the PHP package awes-io/auth without Composer
On this page you can find all versions of the php package awes-io/auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package auth
Short Description Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).
License MIT
Homepage https://github.com/awes-io/auth
Informations about the package auth
Authentication
Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).
Table of Contents
- Installation
- Configuration
- Social and two-factor authentication
- Email verification & resetting passwords
- Usage
- Testing
Installation
Via Composer
The package will automatically register itself.
You can publish migrations:
After migrations have been published you can create required db tables by running:
Publish views:
Configuration
Publish config file:
You can disable additional features by commenting them out:
Add new socialite services:
And configure redirect paths:
Social and two-factor authentication
Several .env variables required if additional modules were enabled in config:
If you enabled social and/or two factor authentication add respective traits to User model class:
Email verification & resetting passwords
To use email verification functionality and to reset passwords, add SendsEmailVerification
and SendsPasswordReset
traits:
Usage
Add to routes/web.php:
You can disable registration:
Package will register several routes.
Besides default authentication routes, it will add:
- Socialite routes
'login.social'
'login/{service}/callback'
- Two factor authentication setup routes
'twofactor.index'
'twofactor.store'
'twofactor.destroy'
'twofactor.verify'
- Two factor authentication login routes
'login.twofactor.index'
'login.twofactor.verify'
- Email verification routes
'verification.resend'
'verification.code.verify'
'verification.code'
'verification.verify'
Testing
You can run the tests with:
Contributing
Please see contributing.md for details and a todolist.
Credits
- Galymzhan Begimov
- All Contributors
License
All versions of auth with dependencies
laravel/socialite Version ^4.0
guzzlehttp/guzzle Version ^6.3