OAuth2 (server) authentication middleware for PSR-7 applications.
Clone or download
Latest commit 98fe5eb Oct 4, 2018


OAuth2 server middleware for Expressive and PSR-7 applications

Build Status Coverage Status

Zend-expressive-authentication-oauth2 is middleware for Expressive and PSR-7 applications providing an OAuth2 server for authentication.

This library uses the league/oauth2-server package for implementing the OAuth2 server. It supports all the following grant types:

  • client credentials;
  • password;
  • authorization code;
  • implicit;
  • refresh token;


You can install the zend-expressive-authentication-oauth2 library with composer:

$ composer require zendframework/zend-expressive-authentication-oauth2


Documentation is in the doc tree, and can be compiled using mkdocs:

$ mkdocs build

You may also browse the documentation online.