Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9182561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:35:18+00:00 2026-06-17T18:35:18+00:00

In our GAE application we process user`s documents in google drive and as this

  • 0

In our GAE application we process user`s documents in google drive and as this process takes sometimes more then 30seconds we are getting deadline exception as it is GAE frontend instance.

we would like to use backend instance. Problem is how to pass credentials (com.google.api.client.auth.oauth2.Credentials) to be able to initialize Google drive API.

How to pass user credentials into GAE task queue and then to backend instance to be able to use them later when task will be running ?

com.google.api.client.auth.oauth2.Credentials is not serializable ...

Is there any way ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:35:20+00:00Added an answer on June 17, 2026 at 6:35 pm

    You’ll need to keep the inputs to the credential so you can re-create it in the backend handler.

    This is either an authorization code, or the access token and refresh token that you got in exchange for the authorization code. They’re all strings so should serialize readily.

    If all that sounds unfamiliar, I’d be curious to understand how you got the Credential in the first place. Links to useful documentation below:

    • Exchange the authorization code for a refresh and access token
    • Retrieve and Use OAuth 2.0 Credentials

    Notably, sample code in that last link specifically includes a method that you’re expected to implement to squirrel away the access/refresh tokens:

    /**
     * Retrieved stored credentials for the provided user ID.
     *
     * @param userId User's ID.
     * @return Stored Credential if found, {@code null} otherwise.
     */
    static Credential getStoredCredentials(String userId) {
      // TODO: Implement this method to work with your database. Instantiate a new
      // Credential instance with stored accessToken and refreshToken.
      throw new UnsupportedOperationException();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I placed this question in Google groups for gae java ( http://groups.google.com/group/google-appengine-java/browse_thread/thread/85dc9f10d7e12a3 ), but
We have our application hosted on Google app engine for Java and we have
We are developing a web application on GAE for golang. Our program passed compiling
We're using sessions in our GAE/J application. Over the weekend, we had a large
Our PHP application makes use of json_encode($myObject) a lot, in conjunction with the mustache
Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
Our Django project is getting huge. We have hundreds of apps and use a
Our goal is simple for an iPhone app: show a splash page then hide
Our column is currently collated to latin1_swedish_ci and special unicode characters are, obviously, getting
When researching Google App Engine (GAE), it's clear that using Django is wildly popular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.