2017 © Pedro Peláez
 

symfony-bundle oauth2-client-bundle

Access APIs protected by the oauth2 authentication scheme

image

lasso/oauth2-client-bundle

Access APIs protected by the oauth2 authentication scheme

  • Friday, March 18, 2016
  • by zodeus
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3,107 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

LassoOauth2ClientBundle

We needed to authenticate against an Oauth2 API using simple 2-legged Bearer-Token authentication. But most of the Oauth2 clients we found were written for 3-legged authentication, or provided minimal functionality, didn't integrate with Symfony well or had other drawbacks., (*1)

We decided to write a very simple wrapper around the popular Buzz Browser using the Buzz Browser Bundle. Our client simply retrieves an oauth2 access token and injects it into the header of requests and hands them off to the Buzz Browser., (*2)

Usage

Pass your authentication credentials into the constructor of the Token class. It also needs a reference to a normal instance of the buzz browser to retrieve a token., (*3)

Then pass the token instance and an instance of the buzz browser to the Client class. You can use the client class like the buzz browser, with all public functions being available., (*4)

Drawbacks

Only the Bearer-Token authentication is supported, as it fulfills our needs - but it's a very simple and less secure method than the HMAC authentication scheme also supported by oauth2. An extension of this bundle to support HMAC would be nice, but is not a high priority for us., (*5)

Three-legged authentication is not supported and not the intend of this bundle. If you wish to use three legged authentication, you should probably look at other clients. If you insist on using this bundle, you would have to implement your own authentication mechanism to retrieve an authentication token. You could then write your own Token class which has the public method 'getToken()', and pass that into the client constructor., (*6)

Build Status, (*7)

The Versions

18/03 2016

dev-master

9999999-dev https://github.com/lassodatasystems

Access APIs protected by the oauth2 authentication scheme

  Sources   Download

BSD-3-Clause

The Requires

 

by Thomas Rubbert

api oauth symfony2 client

28/05 2015

v0.0.5

0.0.5.0 https://github.com/lassodatasystems

Access APIs protected by the oauth2 authentication scheme

  Sources   Download

BSD-3-Clause

The Requires

 

by Thomas Rubbert

api oauth symfony2 client

09/07 2014

v0.0.4

0.0.4.0 https://github.com/lassodatasystems

Access APIs protected by the oauth2 authentication scheme

  Sources   Download

BSD-3-Clause

The Requires

 

by Thomas Rubbert

api oauth symfony2 client

22/02 2014

v0.0.3

0.0.3.0 https://github.com/lassodatasystems

Access APIs protected by the oauth2 authentication scheme

  Sources   Download

BSD-3-Clause

The Requires

 

by Thomas Rubbert

api oauth symfony2 client

21/02 2014

v0.0.2

0.0.2.0 https://github.com/lassodatasystems

Access APIs protected by the oauth2 authentication scheme

  Sources   Download

BSD-3-Clause

The Requires

 

by Thomas Rubbert

api oauth symfony2 client

20/02 2014

v0.0.1

0.0.1.0 https://github.com/lassodatasystems

Access APIs protected by the oauth2 authentication scheme

  Sources   Download

BSD-3-Clause

The Requires

 

by Thomas Rubbert

api oauth symfony2 client