Codoforum related discussions
Help for Sign in with google & facebook

Hi Admin,

I am facing issue with setting, login with google and facebook..

i have done all the setting as per your instruction. here is the screen shot of issue which i am facing..

401 google

error : url_redirect_mismatching..

Please help me..

Hi Admin, I am facing issue with setting, login with google and facebook.. i have done all the setting as per your instruction. here is the screen shot of issue which i am facing.. 401 google error : url_redirect_mismatching.. Please help me..

Can you post the code of lines 1 to 20 of the file codoforum/sys/Ext/hybridauth/config.php ?

Can you post the code of lines 1 to 20 of the file codoforum/sys/Ext/hybridauth/config.php ?
Necessity is the mother of all inventions!

Here is the code in cofig.php

<?php
    #AUTOGENERATED BY HYBRIDAUTH 2.1.2 INSTALLER - Sunday 2nd of February 2014 12:26:10 PM

/*!
* HybridAuth
* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
* (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
*/

// ----------------------------------------------------------------------------------------
//    HybridAuth Config file: http://hybridauth.sourceforge.net/userguide/Configuration.html
// ----------------------------------------------------------------------------------------

return 
    array(
        "base_url" => RURI . "uni_login/authorize", 

        "providers" => array ( 
            // openid providers
            "OpenID" => array (
                "enabled" => true
            ),

            "AOL"  => array ( 
                "enabled" => true 
            ),

            "Yahoo" => array ( 
                "enabled" => true,
                "keys"    => array ( "id" => "", "secret" => "" )
            ),

            "Google" => array ( 
                "enabled" => true,
                          "keys" => array("id" => "738621375236-", "secret" => "")  
            ),
Here is the code in cofig.php ```` &amp;lt;?php #AUTOGENERATED BY HYBRIDAUTH 2.1.2 INSTALLER - Sunday 2nd of February 2014 12:26:10 PM /*! * HybridAuth * http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth * (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html */ // ---------------------------------------------------------------------------------------- // HybridAuth Config file: http://hybridauth.sourceforge.net/userguide/Configuration.html // ---------------------------------------------------------------------------------------- return array( &quot;base_url&quot; =&amp;gt; RURI . &quot;uni_login/authorize&quot;, &quot;providers&quot; =&amp;gt; array ( // openid providers &quot;OpenID&quot; =&amp;gt; array ( &quot;enabled&quot; =&amp;gt; true ), &quot;AOL&quot; =&amp;gt; array ( &quot;enabled&quot; =&amp;gt; true ), &quot;Yahoo&quot; =&amp;gt; array ( &quot;enabled&quot; =&amp;gt; true, &quot;keys&quot; =&amp;gt; array ( &quot;id&quot; =&amp;gt; &quot;&quot;, &quot;secret&quot; =&amp;gt; &quot;&quot; ) ), &quot;Google&quot; =&amp;gt; array ( &quot;enabled&quot; =&amp;gt; true, &quot;keys&quot; =&amp;gt; array(&quot;id&quot; =&amp;gt; &quot;738621375236-&quot;, &quot;secret&quot; =&amp;gt; &quot;&quot;) ), ````

Replace this line

        "base_url" => RURI . "uni_login/authorize",

with

        "base_url" => "http://YOUR_FORUM.COM/hybridauth-git/hybridauth/",
Replace this line ``` &quot;base_url&quot; =&amp;gt; RURI . &quot;uni_login/authorize&quot;, ``` with ``` &quot;base_url&quot; =&amp;gt; &quot;http://YOUR_FORUM.COM/hybridauth-git/hybridauth/&quot;, ```

@adesh1414127033 May I know why it's

hybridauth-git/hybridauth/

That file path is not existing anywhere?

@adesh1414127033 May I know why it&#039;s ```` hybridauth-git/hybridauth/ ```` That file path is not existing anywhere?

Oh, sorry about that...

It should be:

Replace this line

    "base_url" => "http://localhost/hybridauth-git/hybridauth/",

with

    "base_url" => RURI . "uni_login/authorize",

But, that is change is already made, so proabaly your redirect uri is not registered with google in your APIs console.

Oh, sorry about that... It should be: Replace this line &quot;base_url&quot; =&amp;gt; &quot;http://localhost/hybridauth-git/hybridauth/&quot;, with &quot;base_url&quot; =&amp;gt; RURI . &quot;uni_login/authorize&quot;, But, that is change is already made, so proabaly your redirect uri is not registered with google in your APIs console.
edited Feb 20 '16 at 3:06 pm

So what should the redirect be? Im having issues with that

So what should the redirect be? Im having issues with that

For Google, it should be

http://MY_FORUM.com/index.php?u=/uni_login/authorize&hauth.done=Google

Make sure this is set in your google app.

For Google, it should be ``` http://MY_FORUM.com/index.php?u=/uni_login/authorize&amp;amp;hauth.done=Google ``` Make sure this is set in your google app.

Thank you very much this worked. Do you know what the callback url would be for Twitter? Thank you

Thank you very much this worked. Do you know what the callback url would be for Twitter? Thank you

We didn't need any special callback url for twitter while we tested it, simple 'http://google.com' should work.

We didn&#039;t need any special callback url for twitter while we tested it, simple &#039;http://google.com&#039; should work.
434
9
5
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft