We're building an application which accesses files in Google Drive. Our application has a web UI, an Android App and an iOS app. We use oAuth2 to let the user authorize our app to access their Google Drive account. We use the Google Drive Java SDK in the web application and the Android/iOS SDK of Google Drive for mobile. We're unable to use the oAuth tokens returned by the Android SDK in iOS and vice versa. We also can't use the token received by the Java SDK(by our web server) in the Android app. Because of this, we have had to create separate oAuth clients for each platform(web, Android, iOS) and the user needs to authorize once on each platform, which is not very user-friendly. Is there a better way to use the same oAuth token across clients? Am I missing something very basic here?
Sharing Google oAuth Tokens between Android, iOS and Web apps
1.2k Views Asked by Goog DriveUser At
1
There are 1 best solutions below
Related Questions in GOOGLE-OAUTH
- Not getting refresh token with google oauth2
- getting google contacts using shuttlecloud
- How to use Authentication again after it was granted prevously
- Youtube API - Listing hidden videos of my channel using OAuth
- How can I make a copy of a file in Google Drive via Python?
- Error "Invalid token: Cannot parse referred token string" when trying to access to Picasaweb API with oAuth2 from Java
- Need to run getAuthToken twice before receiving access token, why?
- Retrieve Google Sites's Domain Index feed using OAuth 2.0 with Service Account
- On App Engine using Go, correct method for using OAuth2
- Google App Engine Python - YouTube API v3 - Insufficient Permission
- How to set redirect URI with pattern for OAuth 2 with Google?
- Not able to extract access token google service account
- What Google Account is associated with an OAuth Client ID?
- Accessing Google api with multi user
- Unauthorized Client Exception with Google Drive Service Account
Related Questions in GOOGLE-OAUTH-JAVA-CLIENT
- Implementing SSO using OpenID Connect and usage of tokens
- Google Analytics : Get access token from refresh token
- Gmail API + Service accounts return 403 error
- Why Google Drive SDK allows six partial file download requests only?
- OAuth2 Google Api java/eclipse
- Getting a 403 - Forbidden for Google Service Account
- Coldfusion not loading nested class of jar file
- How do I control Token Response Expiry time for google API access
- User Registration & Login | SSO using Spring Security OAuth 2.0
- Sharing Google oAuth Tokens between Android, iOS and Web apps
- Correct way to use a Google Apps Marketplace service account to connect to Gmail IMAP and other services
- Google Analytics Java API "401 Unauthorized Login Required" error
- Google OAuth2.0 + Lambda + S3 Authorization - How to refer to a file from S3?
- Token from Google Credentials Service Account NULL
- Google OAuth Client Library for MS Graph authentication
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You'll need to get a token on iOS and Android for the server.
See this doc for iOS See this doc for Android
On each of the app, you'll ask a user to sign in first. Then check on the server if there is already a token or not. If not then ask for that access and store the token on the server.