PHPackages                             tflori/oauth2 - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. tflori/oauth2

AbandonedLibrary[Authentication &amp; Authorization](/categories/authentication)

tflori/oauth2
=============

A small oauth2 library to provide a oauth2 service

1.1.1(9y ago)1253MITPHPPHP &gt;=5.5CI failing

Since Nov 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tflori/oauth2)[ Packagist](https://packagist.org/packages/tflori/oauth2)[ RSS](/packages/tflori-oauth2/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

tflori/oauth2
=============

[](#tflorioauth2)

[![Build Status](https://camo.githubusercontent.com/8dd67de731ea4bdd5695f24cfe72fb180c488b2dc99f7b6d1771488bcb397f21/68747470733a2f2f7472617669732d63692e6f72672f74666c6f72692f6f61757468322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tflori/oauth2)[![Coverage Status](https://camo.githubusercontent.com/87817fa53ec105179ce81d5a40febf6d3d11f4f756de7212c4caa41aef01c772/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f74666c6f72692f6f61757468322f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/tflori/oauth2?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/3f809352280d941a32da740d237d34230f371221ce347a71c5fc2f55e7e5653a/68747470733a2f2f706f7365722e707567782e6f72672f74666c6f72692f6f61757468322f762f737461626c65)](https://packagist.org/packages/tflori/oauth2)[![Total Downloads](https://camo.githubusercontent.com/0cb005956d40faadfbf0ee448cd119126dd6f972969802321f36bf8339faf672/68747470733a2f2f706f7365722e707567782e6f72672f74666c6f72692f6f61757468322f646f776e6c6f616473)](https://packagist.org/packages/tflori/oauth2)[![License](https://camo.githubusercontent.com/42f81e562cf0aac3d191f5054460794b477e6d875c4289a7a5d11115acbe902a/68747470733a2f2f706f7365722e707567782e6f72672f74666c6f72692f6f61757468322f6c6963656e7365)](https://packagist.org/packages/tflori/oauth2)

This library helps you to create an oauth service with oauth2 three legged authentication mechanism.

Currently the only supported flow is "implicit" with refresh token:

```
     +----------+
     | Resource |
     |   Owner  |
     |          |
     +----------+
          ^
          |
         (B)
     +----|-----+          Client Identifier      +---------------+
     |         -+----(A)-- & Redirection URI ---->|               |
     |  User-   |                                 | Authorization |
     |  Agent  -+----(B)-- User authenticates --->|     Server    |
     |          |                                 |               |
     |         -+----(C)-- Authorization Code ------(D)-- Authorization Code ---------'      |
     |  Client |          & Redirection URI                  |
     |         |                                             |
     |         |
