Unsupported or undefined Opauth strategy - oauth

371 views
Skip to first unread message

Chris Adzima

unread,
Sep 13, 2014, 9:57:11 PM9/13/14
to opa...@googlegroups.com
I installed the vanilla PHP version, and I can't seem to get around this error. I have Facebook, Twitter, and Google Strategies installed in the proper directory, but no matter what I do, I can't seem to get past this one error.

Below is the config file, which is the only change I made. (I obfuscated the keys, but besides that this is the same.

Any pointers would be appreciated.

<?php
/**
 * Opauth basic configuration file to quickly get you started
 * ==========================================================
 * To use: rename to opauth.conf.php and tweak as you like
 * If you require advanced configuration options, refer to opauth.conf.php.advanced
 */

$config = array(
/**
 * Path where Opauth is accessed.
 *  - Begins and ends with /
 *  - 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' => '/',

/**
 * Callback URL: redirected to after authentication, successful or otherwise
 */
'callback_url' => '{path}callback.php',
/**
 * A random string used for signing of $auth response.
 * 
 * NOTE: PLEASE CHANGE THIS INTO SOME OTHER RANDOM STRING
 */
'security_salt' => 'dfliajsd[ofjsa[oejcf[osij[ofasjd;lxfjdjfs',
/**
 * Strategy
 * Refer to individual strategy's documentation on configuration requirements.
 * 
 * eg.
 * 'Strategy' => array(
 * 
 *   'Facebook' => array(
 *      'app_id' => 'APP ID',
 *      'app_secret' => 'APP_SECRET'
 *    ),
 * 
 * )
 *
 */
'Strategy' => array(
// Define strategies and their respective configs here
'Facebook' => array(
'app_id' => 'xxxxxxxxxxxxxxxx',
'app_secret' => 'xxxxxxxxxxxxxxx'
),
'Google' => array(
'client_id' => 'xxxxxxxxxxxxxxxxxxxx',
'client_secret' => 'xxxxxxxxxxxxxxxxxx'
),
'Twitter' => array(
'key' => 'xxxxxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxx'
),
),
);


Rico Bartoschak

unread,
Oct 24, 2014, 2:17:47 PM10/24/14
to opa...@googlegroups.com
I have exact same problem... Been trying on MAMP Pro and local vagrant installations. Same problem on both.

Fatal error: Unsupported or undefined Opauth strategy - auth
Reply all
Reply to author
Forward
0 new messages