Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fetchandadd/guardian
Authentication middleware for PSR-15
https://github.com/fetchandadd/guardian
authentication middleware php psr-15
Last synced: about 9 hours ago
JSON representation
Authentication middleware for PSR-15
- Host: GitHub
- URL: https://github.com/fetchandadd/guardian
- Owner: fetchandadd
- License: mit
- Created: 2017-02-02T20:34:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T15:54:45.000Z (almost 8 years ago)
- Last Synced: 2024-12-09T19:20:31.310Z (about 1 month ago)
- Topics: authentication, middleware, php, psr-15
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Guardian
[![Build Status](https://travis-ci.org/timtegeler/guardian.svg?branch=master)](https://travis-ci.org/timtegeler/guardian)
[![Coverage Status](https://coveralls.io/repos/github/timtegeler/guardian/badge.svg?branch=master)](https://coveralls.io/github/timtegeler/guardian?branch=master)
[![GitHub license](https://img.shields.io/github/license/timtegeler/guardian.svg)]()**Guardian** provides an adapter between an authentication backend and your PSR-15 middleware stack
- Compatible to the PSR-15 middleware interface
- Adaptable to your authentication backend with a simple interface```php
dispatch($request);
```## Authentication Backend
The focus of Guardian is on the adaptation of an authentication backend with a PSR-15 middleware stack.
This means that Guardian itself is not capable of providing authentication e.g. [Basic access authentication](https://en.wikipedia.org/wiki/Basic_access_authentication). But Guardian ships with a simple interface that can be implemented by the authentication backend. The interface consists of two methods.
```php