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

  • Home
  • SEARCH
  • 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 9188729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:05:03+00:00 2026-06-17T20:05:03+00:00

I need to get an oauth token from within an android app that will

  • 0

I need to get an oauth token from within an android app that will allow me to connect to my appengine application as well as be able to send emails from the user’s account. The problem I’ve run into is that for some reason there is not really any good documentation on the auth token scopes that are available.

From what I’ve found you can concat the auth tokens with a space delimeter but I’m having no luck.
accountManager.getAuthToken(account, "oauth2:https://mail.google.com/", null, activity, new AuthTokenCallback(), null);
works just fine to get an email token.

Likewise
accountManager.getAuthToken(account, "ah", null, activity, new AuthTokenCallback(), null);
works great for an app engine token.

However
accountManager.getAuthToken(account, "oauth2:https://mail.google.com/ ah", null, activity, new AuthTokenCallback(), null);
gets me into an error

Couldn't sign in,
There was a problem communicating with Google servers
Try again later

How can I get these two to work together like good little well behaved Google services?

  • 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-17T20:05:04+00:00Added an answer on June 17, 2026 at 8:05 pm

    The problem is that you are trying to mix an OAuth 2.0 scope (“https://mail.google.com/“) with a ClientLogin scope (“ah”) and I do not think this is supported.

    When you want a token with many permission levels, you concatenate them with a space delimiter as you say. For OAuth 2 scopes it is done like this: oauth2:{space separated list of scopes}.

    When you provide the scope oauth2:https://mail.google.com/ ah it is assumed that both scopes are OAuth 2 scopes. But since “ah” isn’t a valid OAuth 2 scope the Google servers won’t accept it and instead gives you the error you see.

    I’m not aware of any OAuth 2 scope for the App Engine and two older questions here on Stackoverflow from 2011 and 2012 suggests that it doesn’t support OAuth 2 yet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i really need your help. I'm trying to get request token from twitter with
I'm trying to make an OAuth 2.0 Provider and an Android application that is
I need to connect to another web application using webservice. That web application uses
I have a Phonegap application that uses ChildBrowser to Authorize my app to connect
Just need get some vals located in application.ini(main ini) in the Controller plugin I
I need to get the contents from this URL http://google.fr/ok in a NSString can
How can i get access token for searching venues in foursquare. From this gem,
I try to get 60 days facebook access token from server side request. After
I am building a CRM webapp in PHP that will pull from all of
is it possible to get access token without user authorization with PHP? I need

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.