Download the PHP package upbond/laravel-auth without Composer
On this page you can find all versions of the php package upbond/laravel-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download upbond/laravel-auth
More information about upbond/laravel-auth
Files in upbond/laravel-auth
Package laravel-auth
Short Description Laravel plugin that helps authenticate with the upbond auth service
License MIT
Informations about the package laravel-auth
Laravel Upbond Auth Plugin
This package is inspired by Auth0
Documentation
Please see the Laravel webapp quickstart for a complete guide on how to install this in an existing project or to download a pre-configured sample project. Additional documentation on specific scenarios is below.
Setting up
Setting up a JWKs cache
In the register
method of your AppServiceProvider
add:
Setting up for lumen
Update .env for your env default to api.upbond.io
You can implement your own cache strategy by creating a new class that implements the Auth\SDK\Helpers\Cache\CacheHandler
contract, or just use the cache strategy you want by picking that store with Cache::store('your_store_name')
;
Storing users in your database
You can customize the way you handle the users in your application by creating your own UserRepository
. This class should implement the Auth\Login\Contract\AuthUserRepository
contract. Please see the Custom User Handling section of the Laravel Quickstart for the latest example.
Using auth guard
To protect APIs using an access token generated by Auth, there is an upbond
API guard provided (Laravel documentation on guards). To use this guard, add it to config/auth.php
with the driver upbond
:
Once that has been added, add the guard to the middleware of any API route and check authentication during the request:
env file
Installation
Install this plugin into a new or existing project using Composer:
Additional steps to install can be found in the quickstart.
Contributing
We appreciate feedback and contribution to this repo! Before you get started, please see the following:
Support + Feedback
Include information on how to get support. Consider adding:
What is Auth?
Auth helps you to easily:
- implement authentication with multiple identity providers, including social (e.g., Google, Facebook, Microsoft, LinkedIn, GitHub, Twitter, etc), or enterprise (e.g., Windows Azure AD, Google Apps, Active Directory, ADFS, SAML, etc.)
- log in users with username/password databases, passwordless, or multi-factor authentication
- link multiple user accounts together
- generate signed JSON Web Tokens to authorize your API calls and flow the user identity securely
- access demographics and analytics detailing how, when, and where users are logging in
- enrich user profiles from other data sources using customizable JavaScript rules
License
The Auth Laravel Login plugin is licensed under MIT - LICENSE
All versions of laravel-auth with dependencies
upbond/auth-php Version 2.0
illuminate/support Version 5.* | ^6.0 | ^7.0 | ^8.0
illuminate/contracts Version 5.* | ^6.0 | ^7.0 | ^8.0