Permalink
Browse files

Missing namespace after Opauth update. Closes #5

  • Loading branch information...
1 parent cbebe58 commit ee98562d871e80d326fb6f253bf33631a956b123 @andreoav committed Dec 6, 2012
Showing with 10 additions and 2 deletions.
  1. +2 −0 classes/Opauth.php
  2. +2 −0 classes/OpauthStrategy.php
  3. +2 −0 classes/Strategy/TwitterStrategy.php
  4. +4 −2 config/opauth.php
View
@@ -9,6 +9,8 @@
* @license MIT License
*/
+namespace Opauth;
+
/**
* Opauth
* Multi-provider authentication framework for PHP
@@ -9,6 +9,8 @@
* @license MIT License
*/
+namespace Opauth;
+
/**
* Opauth Strategy
* Individual strategies are to be extended from this class
@@ -11,6 +11,8 @@
* @license MIT License
*/
+namespace Opauth;
+
class TwitterStrategy extends OpauthStrategy{
/**
View
@@ -25,7 +25,7 @@
* eg. if Opauth is reached via http://example.org/auth/, path is '/auth/'.
* if Opauth is reached via http://auth.example.org/, path is '/'.
*/
- 'path' => '/',
+ 'path' => '/auth/',
/**
* Uncoment if you would like to view debug messages.
@@ -34,8 +34,10 @@
/**
* Callback URL: redirected to after authentication, successful or otherwise.
+ *
+ * eg. if Opauth callback is reached via http://example.org/auth/callback, callback_url id '/auth/callback/'
*/
- 'callback_url' => '{path}callback',
+ 'callback_url' => '/auth/callback/',
/**
* Callback transport, for sending of $auth response.

0 comments on commit ee98562

Please sign in to comment.