Download the PHP package limit0/modlr-auth-bundle without Composer
On this page you can find all versions of the php package limit0/modlr-auth-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download limit0/modlr-auth-bundle
More information about limit0/modlr-auth-bundle
Files in limit0/modlr-auth-bundle
Package modlr-auth-bundle
Short Description Implements core authentication services for projects using modlr
License MIT
Informations about the package modlr-auth-bundle
ModlrAuthBundle
Implements core authentication services for projects using as3io/modlr
Requirements
- You must use or replicate the supplied
core-user
model.- You can (optionally) use the supplied
core-account
model.
- You can (optionally) use the supplied
Installation
Install the package via composer:
Include the bundle in your AppKernel.php
:
Configuration
Routing
You will need to import this bundle's routing. To prevent any potential collision issues, be sure to load it before your API is loaded in your application:
Security
Update security.yml
configuration (a template is available):
Add the core_user
provider:
Add the user encoder:
There are two authenticators supplied, a stateless API authenticator that uses JWT:
And one that uses stateful Symfony framework tokens:
Once you've configured your firewalls, configure your access controlled paths.
To lock out the modlr API (replace api/rest
with your configured modlr rest api prefix):
Or locking down the entire application can be done as well:
All versions of modlr-auth-bundle with dependencies
symfony/framework-bundle Version >=2.0 <2.7 || ^3.0
symfony/yaml Version >=2.0 <2.7 || ^3.0
as3/modlr-bundle Version dev-master
lcobucci/jwt Version ^3.2