All Questions
Tagged with google-oauth php
812
questions
1
vote
1
answer
31
views
PHPMailer getOAuth2token response to div
Is there a way to redirect the output of PHPMailer's get_oauth_token.php (https://github.com/PHPMailer/PHPMailer/blob/master/get_oauth_token.php) into an adot div? I pasted the file from github into ...
2
votes
1
answer
59
views
PHP Laravel Google OAuth gives error for some users
I own www.sweai.se
I integrated Google login, and it works for me, friends, wife etc. No issues. However one user reported redirect error, and today I got a spike in users and I got a few reporting ...
-1
votes
1
answer
264
views
Google OAuth Refresh Token Expires After 1 Hour (PHP Google Ads API with Laravel)
My Google OAuth refresh token expires after one hour, even though both my OAuth and Google Ads API applications are verified and approved.
Both OAuth and Google Ads API apps are verified and approved....
0
votes
0
answers
34
views
Main tab doesn't retain authenticated state after authenticating user in popup window using Laravel Socialite
I am working on a project with TALL Stack where I implemented OAuth2 using Laravel Socialite package. Initially, I made a simple link with the redirect uri. This approach works fine and the user gets ...
0
votes
0
answers
129
views
OAUTH_TOKEN_HEADER_INVALID with Google Ads API in PHP using Web client or Service account
I've set up an OAuth2 web project as well as a Service Account. Both IDs have been added with domain-wide delegation with the adwords scope in my Google Workspace.
I have a Google Ads Manager account ...
0
votes
1
answer
422
views
"Invalid state parameter passed in callback URL" error implementing Google OAuth2 in an API REST (PHP & Symfony)
I am developing a REST API with PHP 8.2, Symfony 6.4 and API Platform. I am finishing implementing OAuth with Google using the bundle KnpUOAuth2ClientBundle but I am getting the error that the title ...
0
votes
0
answers
50
views
PHP Gmail API access' token expired without login
I am using Google Client class to get access to Gmail API using with the tokens that I have stored in the tokens.json file.
When the access token is expired, I have tried this:
if ($client->...
0
votes
0
answers
148
views
PHP Google API OAuth2 JWT request request for access Token says "Invalid JSON payload received"
I'm currently working on a project involving Google Cloud API and JWT, and have an issue:
I'm having trouble generating a JWT token to access the Google Cloud API in a Laravel 10 application using the ...
0
votes
0
answers
37
views
Google Ads Api - I can create refresh token only for computer App
I create OAuth creditionals in Google Api
Problem is that if I check wep application like on the screen, and after I try to generate refresh token from this command ~/go/bin/oauth2l fetch --...
1
vote
0
answers
660
views
credential_page_library:48 [GSI_LOGGER]: The given origin is not allowed for the given client ID
I am trying to get google oauth working on my php webapp.
I'm in dev, on a centos LAMP environment with a URL that is configured to http://centos-myapp.com via /etc/hosts on Windows.
On https://...
0
votes
2
answers
462
views
Wrong redirect after success login
I have an application that has been working for several years. Login worked as it should, i.e. after redirection to Google login, access granted. The user was redirected to the address provided via ...
1
vote
1
answer
810
views
Automatically Login Gmail Account
I want to automatically authenticate and login into a Gmail Account via a php script.
Since it wont be possible to authenticate via App using username + password from 2024 on, i am looking for a new ...
0
votes
0
answers
71
views
Hybridauth set access token invalid
For full context, I have an android application which communicates with a php server. I am able to successfully login to a google account using this function from android level (kotlin):
val gso = ...
0
votes
0
answers
445
views
PHP, Google Authentication and need to check validity of access_token on every page
I am a bit confused. I am playing around with Google Authentication in PHP. I have a index.php page which only has the link to my Google Authentication page which is called google-auth.php and is ...
0
votes
0
answers
194
views
Google Drive API V3: 404 file not found error on download or export the shared PDF
I'm using Google Drive API V3 with PHP and trying to download or export the file which is shared with me by other person. But getting 404 File Not Found error.
Google\Service\Exception: { "error&...