PHPackages                             slimphp-api/slim-oauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. slimphp-api/slim-oauth

ActiveLibrary[Framework](/categories/framework)

slimphp-api/slim-oauth
======================

Slim Framework OAuth Middleware

2.0.0(10y ago)106123MITPHPPHP &gt;=5.4.0

Since Apr 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/slimphp-api/slim-oauth)[ Packagist](https://packagist.org/packages/slimphp-api/slim-oauth)[ Docs](http://slimframework.com)[ RSS](/packages/slimphp-api-slim-oauth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (8)Used By (0)

Slim Framework OAuth Middleware
===============================

[](#slim-framework-oauth-middleware)

[![Code Climate](https://camo.githubusercontent.com/54609d0fe8dd0a8ec2de3bd3052010ab545e929910e60a330ce4e9094e5de3d7/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f736c696d7068702d6170692f736c696d2d6f617574682f6261646765732f6770612e737667)](https://codeclimate.com/github/slimphp-api/slim-oauth)

This repository contains a Slim Framework OAuth middleware.

Enables you to authenticate using various OAuth providers.

The middleware allows registration with various oauth services and uses a user service to register/retrieve the user details. After registration/authentication it responds with a Authorization header which it expects to be returned as is to authorise further requests. It's up to the supplied user service how this is accomplished.

Installation
------------

[](#installation)

Via Composer

```
$ composer require slimphp-api/slim-oauth
```

Requires Slim 3.0.0 or newer.

Usage
-----

[](#usage)

```
