Download the PHP package cloudoki/guardian without Composer
On this page you can find all versions of the php package cloudoki/guardian. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cloudoki/guardian
More information about cloudoki/guardian
Files in cloudoki/guardian
Package guardian
Short Description Internal Authorisation scopes for Laravel
License MIT
Homepage http://github.com/Cloudoki/Guardian
Informations about the package guardian
Guardian
As extension to the Oauth2 Stack, Guardian provides internal Authorisation scopes for Laravel.
This package is usable in multiple Laravel versions. Right now, however, the Guardian package is only tested in Laravel 4.2 with Eloquent.
Dependencies
Oauth2-Stack - Guardian uses the Account and User models next to the Oauth2Verifier class.
Except-io-nal - The Cloudoki PHP Exception extensions are used to throw manageable errors when authorisations are not valid.
Install Laravel 5.2 MQ
Add our package as requirement in your composer file.
You might want to run an update. If something goes wrong, change your minimum-stability
to dev
in the composer.json
file, for now.
The package is now installed in the project vendor
folder. You'll need to register the package provider in your app config file next.
Since Laravel 5, the Illuminate\Form is no longer part of the core pack, so you should register it as well.
DB Migration
Of course, your backend workers need db access for validation. It goes something like this:
DB Seeds
In order to create the roles required by the Guardian package itself, run the following command from the root path of the app that uses this package.
Usage
Oauth2 Stack
Please dig into the Oauth2 Stack documentation before implementing Guardian.
Access Token
The access token is requested as Input
parameter, in respect to the Oauth2 Stack and MQ alignment. In a production level API request however, the access token should ALWAYS be placed in the Authorisation header of the request.
Management REST Endpoints
The Guardian package provides REST API endpoints to view and manage Rolegroups and Roles. Detailed documentation in this wiki page.
All versions of guardian with dependencies
cloudoki/oauth2-stack Version dev-master
cloudoki/except-io-nal Version v0.5.*