Download the PHP package mvieira/macaroons without Composer
On this page you can find all versions of the php package mvieira/macaroons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package macaroons
Macaroons
A php implementation of Macaroons: Cookies with Contextual Caveats for Decentralized Authorization
Specification
Resources
- http://hackingdistributed.com/2014/05/21/my-first-macaroon/
- https://air.mozilla.org/macaroons-cookies-with-contextual-caveats-for-decentralized-authorization-in-the-cloud/
- https://evancordell.com/2015/09/27/macaroons-101-contextual-confinement.html
Installation
Requirements
- php >= 7.0
- libsodium-php >= 1.0
About libsodium
- The
libsodium
library will be distributed with PHP >= 7.2) - The
libsodium
library is not required incomposer.json
because the versions 1 (ext-libsodium
) and 2 (ext-sodium
) have different names. Nevertheless, this package should work with both once installed.
Installation
Add the library as a requirement in your composer.json
or with command line
Documentation
Here is a simple example with a third party macaroon
:
On the target service
server, produce the macaroon
authorizing the user to access the service.
On the identification provider server, produce the discharge macaroon
that will verified the third party caveat
Back on the target service server
Examples
Examples are available in the directory
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see LICENSE for more information.