PHPackages                             jdelaune/oauth2-client-bundle - 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. jdelaune/oauth2-client-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

jdelaune/oauth2-client-bundle
=============================

Symfony OAuth2ClientBundle

5.0.1(6y ago)53.7k4[1 PRs](https://github.com/jdelaune/oauth2-client-bundle/pulls)MITPHPPHP &gt;=7.0.0

Since Sep 29Pushed 6y ago2 watchersCompare

[ Source](https://github.com/jdelaune/oauth2-client-bundle)[ Packagist](https://packagist.org/packages/jdelaune/oauth2-client-bundle)[ Docs](http://github.com/jdelaune/oauth2-client-bundle)[ RSS](/packages/jdelaune-oauth2-client-bundle/feed)WikiDiscussions 3.x Synced 4w ago

READMEChangelog (10)Dependencies (4)Versions (16)Used By (0)

OAuth2 Client Bundle
====================

[](#oauth2-client-bundle)

OAuth2 Client Bundle for Symfony 2-5.

Overview
--------

[](#overview)

Allow for the protection of resources via OAuth2. Provides two Symfony firewalls. One for checking bearer access tokens for securing API application. The access tokens can be provided via a header (recommended) or query e.g. `Authorization: Bearer {Access Token}` or `http://example.com/resource?access_token={Access Token}`. The other firewall is for securing web applications via the authorization code grant type.

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

[](#installation)

### Step 1: Add package to Composer

[](#step-1-add-package-to-composer)

Add the bundle to your composer.json:

```
{
    "require": {
        "jdelaune/oauth2-client-bundle": "^5.0"
    }
}
```

Now tell composer to download the bundle by running the command:

```
$ php composer.phar update jdelaune/oauth2-client-bundle
```

Composer will install the bundle to your project's `vendor/jdelaune` directory.

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
