This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

OAuth stack middleware.

dev-master / 1.0.x-dev 2014-07-03 14:16 UTC

This package is not auto-updated.

Last update: 2021-06-06 22:51:51 UTC


OAuth stack middleware.


  • session: The request must have session handling accounted for. You can do this by prepending the stack/session middleware to this one.

  • credentials: You need to have some sort of OAuth server. By default, stack/oauth will use twitter. But you can change that through the oauth_service.class config parameter.


use Igorw\Stack\OAuth;

$app = new OAuth($app, [
    'key'           => 'foo',
    'secret'        => 'bar',
    'callback_url'  => 'http://localhost:8080/auth/verify',
    'success_url'   => '/',
    'failure_url'   => '/auth',

Pre-defined URLs

  • /auth
  • /auth/verify


  • config validation
  • tests
  • more flexible path config (?)