2017 © Pedro Peláez
 

symfony-bundle oauth2-client-bundle

Symfony OAuth2 Bundle client side

image

spirit-dev/oauth2-client-bundle

Symfony OAuth2 Bundle client side

  • Sunday, September 21, 2014
  • by spirit-dev
  • Repository
  • 1 Watchers
  • 3 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

DOCUMENT BEING WRITTEN

Getting Started With SpiritDevO-Auth2ClientBundle

Introduction

OAuth2ClientBundle is an OAuth2 flow manager. Define your API grants, your rendering template and thats all. It manages for you token flows from OAuth2 Protocol. It also provides a direct login to API side. Take a look to the following to get started with OAuth2ClientBundle ;), (*1)

Installation

Installation is a quick 3 steps process:, (*2)

  1. Download SpiritDevOAuth2ClientBundle
  2. Enable the Bundle
  3. Configure the SpiritDevOAuth2ClientBundle

Step 1: Install SpiritDevOAuth2ClientBundle

The preferred way to install this bundle is to rely on Composer. Just check on Packagist the version you want to install (in the following example, we used "dev-master") and add it to your composer.json:, (*3)

``` js { "require": { // ... "spirit-dev/oauth2-client-bundle": "dev-master" } }, (*4)


### Step 2: Enable the bundle Finally, enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new SpiritDev\Bundle\OAuth2ClientBundle\SpiritDevOAuth2ClientBundle(), ); }

Step 3: Configure SpiritDevOAuth2ClientBundle

Document beeing written. This part may change.

Import the routing.yml configuration file in app/config/routing.yml:, (*5)

``` yaml, (*6)

app/config/routing.yml

spirit_dev_oauth2_client_o_auth: resource: "@SpiritDevOAuth2ClientBundle/Resources/config/routing.yml", (*7)


Add SpiritDevOAuth2ClientBundle settings in app/config/config.yml: ``` yaml # app/config/config.yml spirit_dev_o_auth2_client: api_oauth_settings: token_uri: "http://your.api.com/oauth/v2/token" // API url to get token get_user_uri: "http://your.api.com/api/v1/user" // API url to get user informations client_id: "ExampleOfClientIDProvidedByYourAPI.com" // ClientId Passphrase given by API client_secret: "ExampleOfClientSecretProvidedByYourAPI.com" // ClientSecret Passphrase given by API redirect_uri: "http://your.local.app/index" // Internal redirection url after login success refresh_token_uri: "http://dev.spiritapi.com/check_remote_token" // url to pass to view to reload access_token login_success_settings: redirection_type: "twig" // Switch between js and twig to generate redirection // next arriving feature redirection_template: AcmeDemoBundle:Default:index.html.twig

Simulating a token granting (comming soon)

Next steps

Now that you have completed the basic installation and configuration of the FOSUserBundle, you are ready to learn about more advanced features and usages of the bundle., (*8)

The following documents are available:, (*9)

The Versions

21/09 2014

dev-master

9999999-dev

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

21/09 2014

0.8

0.8.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

21/09 2014

0.9

0.9.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

21/09 2014

1.0

1.0.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

20/09 2014

0.7

0.7.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

08/08 2014

0.5

0.5.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

08/08 2014

0.6

0.6.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

22/07 2014

0.3

0.3.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

20/07 2014

0.2

0.2.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

20/07 2014

0.1

0.1.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

20/07 2014

0.0

0.0.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev

20/07 2014

0.4

0.4.0.0

Symfony OAuth2 Bundle client side

  Sources   Download

GPL-v2

The Requires

  • php >=5.3.2

 

security client oauth2 auto provider spirit-dev