Google Groups

Re: I always get a notice, but the opauth works fine.


Abhishek Bhardwaj Dec 17, 2012 9:01 AM
Posted in group: Opauth
Sir the https://mietabhishek.redirectme.net/mobile/za/live is working fine, but I wanted to list the options through which the user can log in, and the list is being shown at https://mietabhishek.redirectme.net/mobile/za/
You can also visit my url.

On Monday, 17 December 2012 22:27:23 UTC+5:30, U-Zyn Chua wrote:
What is the URL that you called?

Try going to https://mietabhishek.redirectme.net/mobile/za/live directly and don't send your users to https://mietabhishek.redirectme.net/mobile/za/

On Tuesday, December 18, 2012 12:44:47 AM UTC+8, Abhishek Bhardwaj wrote:
Hello, I have already tried that:
<?php
$config = array(
    'path' => '/mobile/za/',

    'callback_url' => '{path}callback.php',

    'security_salt' => '
xxxxx',
       

    'Strategy' => array(
        'Facebook' => array(
            'app_id' => 'xxxxx',
            'app_secret' => 'xxxxxxxxx',
            'scope'    => 'email'
        ),
       
        'Google' => array(
            'client_id' => 'xxxxxxxxxxxxxx',
            'client_secret' => 'xxxxxxxxxxxxx'
        ),
        'LinkedIn' => array(
            'api_key' => 'xxxxxxxxxx',
            'secret_key' => 'xxxxxxxxxx'
        ),
       
        'Live' => array(
            'client_id' => 'xxxxxxxxxxx',
            'client_secret' => 'xxxxxxxxxxxxxx'
        )               
    )
);


On Monday, 17 December 2012 22:00:26 UTC+5:30, U-Zyn Chua wrote:
You may want to set
'path' => '/mobile/za/' to opauth.conf.php.

See: https://github.com/uzyn/opauth/wiki/Opauth-configuration

On Monday, December 17, 2012 10:00:58 PM UTC+8, Abhishek Bhardwaj wrote:
I always get the following error notice:


Notice: No strategy is requested. Try going to https://mietabhishek.redirectme.net/mobile/za/live to authenticate with Live in C:\wamp\www\mobile\za\lib\Opauth\Opauth.php on line 125

Here the 'live' accordingly changes to the name which I mention last in Strategies, suppose if I add facebook's strategy at the end of opauth.conf.php , it will show:


Notice: No strategy is requested. Try going to https://mietabhishek.redirectme.net/mobile/za/facebook to authenticate with Facebook in C:\wamp\www\mobile\za\lib\Opauth\Opauth.php on line 125

Although the opauth works perfectly, but on jQuery Mobile's websites it makes problem. And also the error doesn't looks good on production websites.

Please help, thanks,