Click here to Skip to main content
14,385,812 members
Rate this:
Please Sign up or sign in to vote.
As i run script on localhost works fine. but on server showing 403 error. Please help. Thanks.


What I have tried:

Please check below link.


https://i.stack.imgur.com/8QkFw.png[^]

in my google console redirect url is -
http://xyz.com/change/googlelogin

and as i login with google auth , url showing this -
http://xyz.com/change/googlelogin?code=4/sgAnQ7T_O5l7bDPgaMQ4_s-c0Abz_wxsVPIt5bPQdaklIdF0QyoQicTXyW7CUQHh5ScUBZ4GYyyV8cZyiX-mu3s&scope=email%20profile%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email[^]
Posted
Updated 12-Dec-18 21:48pm
v2
Comments
Richard MacCutchan 11-Dec-18 6:09am
   
The error message is quite clear.
Afzaal Ahmad Zeeshan 11-Dec-18 6:29am
   
As Richard has said, the error is quite clear in itself: You need to authenticate yourself.
vikraantvish 11-Dec-18 7:09am
   
what type of authenticate ?.
my website dont have ssl (https). is ssl required to run google auth. ?
Afzaal Ahmad Zeeshan 11-Dec-18 9:13am
   
No, you should check with the API you are using, SSL is not the issue, username/password is more likely.
vikraantvish 13-Dec-18 5:02am
   
username and password is right. not capturing uri which is got after google auth.
its a query based.
Afzaal Ahmad Zeeshan 13-Dec-18 5:31am
   
Perhaps then documentation would be able to guide you further on this. :-)
vikraantvish 13-Dec-18 5:32am
   
do u have any working code for live website.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100