Click here to Skip to main content
16,018,664 members
Please Sign up or sign in to vote.
1.00/5 (1 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 20: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.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900