React-Native GDrive API "Error-> [AbortError: Aborted]" - react-native

I'm using the #robinbobin/react-native-google-drive-api-wrapper for GDrive file access. I can sign in with the #react-native-google-signin/google-signin to get the access token. But when I try to access the google drive (tried gdrive.files.list({}) and gdrive.about.get('*')), I always get the "Error-> [AbortError: Aborted]" with the "LOG" tag due to timeout.
LOG Error-> [AbortError: Aborted]
I've also tried the RobinBobin/gdrivetest project from https://github.com/RobinBobin/gdrivetest. Still got the same "Error-> [AbortError: Aborted]" message.
Any help is appreciated!
Related Code:
// Signin configure
GoogleSignin.configure({
scopes: [
'https://www.googleapis.com/auth/drive',
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive.appfolder',
'https://www.googleapis.com/auth/drive.readonly',
],
});
// GDrive access
const gdrive = new GDrive();
gdrive.accessToken = (await GoogleSignin.getTokens()).accessToken;
gdrive.fetchCoercesTypes = true
gdrive.fetchRejectsOnHttpErrors = true
gdrive.fetchTimeout = 30000
console.log(await gdrive.about.get('*'));
// Tried this as well
let data = await gdrive.files.list({
q: new ListQueryBuilder()
.e('folderId', '1cU1OKC9K20DivHcdMeIhwMWGThIudLEB')
.in('root', 'parents'),
})
Google Drive API Setup:
Enabled APIs:
Google Drive API
App Engine Admin API
BigQuery API
BigQuery Migration API
BigQuery Storage API
Cloud Datastore API
Cloud Debugger API
Cloud Logging API
Cloud Monitoring API
Cloud Pub/Sub API
Cloud Resource Manager API
Cloud Runtime Configuration API
Cloud SQL
Cloud Storage
Cloud Storage API
Cloud Testing API
Cloud Trace API
FCM Registration API
Firebase App Distribution API
Firebase Cloud Messaging API
Firebase Dynamic Links API
Firebase Hosting API
Firebase Installations API
Firebase Management API
Firebase Remote Config API
Firebase Rules API
Google Cloud APIs
Google Cloud Storage JSON API
Identity Toolkit API
Mobile Crash Reporting API
Service Management API
Service Usage API
Token Service API

Related

Add Google Cloud service account to Google Play Console Api Access

is it possibe to add a Google Cloud service account json done with a different gmail account to a Google Play console api access with different gmail account?
Google Cloud service account (gmail1) -> Google Play Api Access (gmail2)
I want to use an already existing cloud platform profile, only thing is I created Google Play console profile with another gmail, is it possible to manually add the json?
https://play.google.com/console/u/0/developers/7136348775757715460/api-access
Can't do it from here...

How to allow authenticated Identity Platform user to upload to Cloud Storage from web

I am not able to use Firebase Storage however I am using Identity Platform (firebase auth). Once a user is logged in to my web application, I would like them to be able to upload to a Cloud Storage bucket. The current way I am thinking about doing this is by have a Cloud Function which first uses firebase admin library to verify the token of the user and then generates a signed-url for the upload.
Is this the correct method for doing this?
Google Cloud Identity Platform uses the same SDKs and most of the same back-end as Firebase Authentication. The main difference in is the set of features it supports, and its pricing model.
If your project is set up for using Cloud Identify Platform, you can still use the Firebase SDKs for Cloud Storage to upload, and use Firebase's server-side security rules to control read/write access for it. A common security model to get started with is content-owner only access.

How to Authenticate users in Azure AD to a custom web app deployed in Google cloud run?

I have experience in integrating AWS cognito with Azure AD (SSO). But I don't know how to implement similar authentication in GCP.
I want to authenticate the users in Azure AD to use the custom web app deployed in Google cloud run.
I see three options in GCP, but I couldn't find any resource to implement.
Google cloud identity
Google cloud identity platform
Firebase Authentication
This custom web app should only authenticate the Azure AD users in our organization.
Google Cloud Identity Platform and Firebase Authentication are effectively the same thing. There are a few additional features in GCIP.
To set up GCIP for Microsoft user, here's a link to the docs.
If you're using Cloud Function for Firebase, you can use a Callable Function to get the authenticated user, then handle your own authorisation.
If you want to use Cloud Run, then you can use the Firebase Admin SDK (even with GCIP) to verify the token and get the user ID (which you can then use to authorise the user via a database or with Custom Claims).

Using Google Accounts for Authentication and Google APIs in Compute Engine

The Google App Engine standard environment allows easy integration with Google accounts for user authentication, Cloud Datastore and with APIs such as Gmail API, Google Calendar etc.
Are these same features available in Compute Engine also? I mean can I deploy a web application in a Tomcat container in a Compute Engine VM and use Google Accounts for authentication, Cloud Datastore for persistence and APIs such as Google Plus and Google Calendar for reading users' personal information?
I found this URL that says Cloud Datastore can be used from Compute Engine but could not find similar documentation about usage of Google Accounts for authentication and usage of APIs like Google Plus and Google Calendar.
Yes you can.
You can use all Google APIs (Gmail API, Google Calendar etc) from tomcat and from any other web container. You simply need to provide the credential to connect to the Google APIs. HERE how can you obtain the credential on a server side web application, please note that the documentation it's not referring to any specific web container.
Appengine provides out of the box a simpler way to authenticate Google user through the UserServiceFactory. This service it's not available outside the AppEngine Enviroment because it comes with the AppEngine SDK.
In order to use the Google Cloud Datastore from outside of the AppEngine environment you need to use the Remote API. With this api you will be able to access the Datastore service.

Using Firebase authentication with appengine decorator

I'd like to use Firebase to authenticate/authorize the user in my web app, but then use the AppEngine decorator in Python to make API calls to the user's Google Contacts/Calendar from the backend if the user authenticates with a Google account. Is it possible to carry on the Firebase authentication/authorization to the appengine decorator?