Notice: No strategy is requested.

73 views
Skip to first unread message

Ron Tornambe

unread,
May 3, 2016, 11:58:51 AM5/3/16
to Opauth
The rest of the message is " Try going to http://writers-tryst.ron-tornambe.com/lib/Opauth/facebook to authenticate with Facebook in /home/deje/public_html/writers-tryst/lib/Opauth/Opauth.php on line 125"

What is the cause of this error?

The Opauth folder contains a Strategy folder which contains a facebook folder which contains two files: composer.json and FacebookStrategy.php.

composer.json:

{
	"name": "opauth/facebook",
	"description": "Facebook strategy for Opauth",
	"keywords": ["authentication","auth","facebook"],
	"homepage": "http://opauth.org",
	"license": "MIT",
	"authors": [
		{
			"name": "U-Zyn Chua",
			"email": "ch...@uzyn.com",
			"homepage": "http://uzyn.com"
		}
	],
	"require": {
		"php": ">=5.2.0",
		"opauth/opauth": ">=0.2.0"
        "opauth/facebook": "*",
        "opauth/google": "*",
        "opauth/linkedin": "*"
	},
	"autoload": {
		"psr-0": {
			"": "."
		}
	}
}

opauth.config.php

<?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' => '/lib/Opauth/',

/**.
 * Callback URL: redirected to after authentication, successful or otherwise
 */
	'callback_url' => '{path}callback.php',
	
/**
 * A random string used for signing of $auth response.
 */
	'security_salt' => 'RVTmiilYf8Fyw5W10rx4W1KsVrieQCnpBzzpTBWA5vJidQKDx8pMJbmw28R1C4m',
		
/**
 * 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(
        'Facebook' => array(
            'app_id' => '580050405503686',
            'app_secret' => '8e3d7a8263738eabc87f402e9bf25442'
        ),
		// Define strategies and their respective configs here
		
	),
);

TIA
Reply all
Reply to author
Forward
0 new messages