Download the PHP package uwdoem/aliro without Composer
On this page you can find all versions of the php package uwdoem/aliro. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package aliro
Short Description Slim.php middleware library for Authorizing users through the University of Washington Group and Person Web Services
License
Informations about the package aliro
UWDOEM/Aliro
Aliro is a Middleware class for the Slim.php framework. It provides user authorization through the UW Group Web Service.
It is easy to add to a Slim.php application. Simply register Aliro as middleware, and provide a list of secured endpoints and the UW groups that are authorized to access them. Visitors will be screened for membership, and if they are not found within the provided groups, they will recieve a 401 reponse, without any content from your application.
Notice
This is not an official library, endorsed or supported by any party who manages or owns information accessed via GWS. This library is not endorsed or supported by the University of Washington Department of Enrollment Management.
Installation
This library is published on packagist. To install using Composer, add the "uwdoem/aliro": "1.*"
line to your "require" dependencies:
Of course it is possible to use Aliro without Composer by downloading it directly, but use of Composer to manage packages is highly recommended. See Composer for more information.
Use
Once installed, you will need to provide several pieces of configuration information, before registering Aliro as middleware for you Slim application.
First you will have to define the required settings for the Group Web Service
You will also need to define the similar (but distinct) settings for the Person Web Service, Aliro relies on both systems.
Finally, you will need to provide settings specific to Aliro, and then register the middleware for your application.
That's all there is to it. Aliro will check the groups of the current user each time they request an end-point that you have listed. If the user is a member of one of the listed groups, the endpoint is allowed to resolve. If they are not a member, a 401 is returned, along with an error JSON object.
You can define a custom permission denied handler in the initial settings, which will be called instead of returning JSON.
Unlisted end-points will be accessible by default. Aliro will not do any checking without a permissions rule in place.
Requirements
- PHP 7.0
- uwdoem/connection 3.*
- uwdoem/group ^1.0.10
- uwdoem/person ^1.5
All versions of aliro with dependencies
uwdoem/connection Version 3.*
uwdoem/person Version ^1.5.0
uwdoem/group Version ^1.0.10