Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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