igorw/stack-oauth

OAuth stack middleware.

Maintainers

👁 igorw

Package info

github.com/igorw/stack-oauth

pkg:composer/igorw/stack-oauth

Statistics

Installs: 59

Dependents: 1

Suggesters: 0

Stars: 37

Open Issues: 2

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

Requires

Requires (Dev)

Suggests

Provides

None

Conflicts

None

Replaces

None

MIT 2d5cf0039fd889cbd5eac00fd5d69f0ea16388a1

  • Igor Wiedler <igor.woop@wiedler.ch>

oauthstack

This package is not auto-updated.

Last update: 2026-06-15 22:38:59 UTC


README

OAuth stack middleware.

Requirements

  • 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.

Usage

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

TODO

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