Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
revoke permissions to access google auth tokens
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
RS  
View profile  
 More options Jun 15 2011, 5:48 am
From: RS <rajeshs...@gmail.com>
Date: Wed, 15 Jun 2011 02:48:16 -0700 (PDT)
Local: Wed, Jun 15 2011 5:48 am
Subject: revoke permissions to access google auth tokens
Once an app is allowed to access an account's auth token, how can a
user revoke?

android.permission.USE_CREDENTIALS

Also once an app has been denied, where to go and allow?

eg: Chrome-to-phone won't ask again on its own once denied even across
uninstall, reboot, reinstalls. Just force closes. That might be bad
implementation but still there must be a central control to allow/deny/
revoke/change access to auth tokens on per app basis.

Which app's clear data/cache is safe to go for a clean start without
affecting stock apps?

Thanks
RS


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RS  
View profile  
 More options Jun 16 2011, 11:47 am
From: RS <rajeshs...@gmail.com>
Date: Thu, 16 Jun 2011 08:47:42 -0700 (PDT)
Local: Thurs, Jun 16 2011 11:47 am
Subject: Re: revoke permissions to access google auth tokens
community seemingly has no idea on this ... could anybody from google
perhaps answer

hellooo..

On Jun 15, 10:48 am, RS <rajeshs...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikolay Elenkov  
View profile  
 More options Jun 16 2011, 12:01 pm
From: Nikolay Elenkov <nikolay.elen...@gmail.com>
Date: Fri, 17 Jun 2011 01:01:03 +0900
Local: Thurs, Jun 16 2011 12:01 pm
Subject: Re: [android-developers] Re: revoke permissions to access google auth tokens

On Fri, Jun 17, 2011 at 12:47 AM, RS <rajeshs...@gmail.com> wrote:
> community seemingly has no idea on this ... could anybody from google
> perhaps answer

Use your Google powers to google it. Hint: it's not done on the phone.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RS  
View profile  
 More options Jun 17 2011, 7:07 am
From: RS <rajeshs...@gmail.com>
Date: Fri, 17 Jun 2011 04:07:42 -0700 (PDT)
Local: Fri, Jun 17 2011 7:07 am
Subject: Re: revoke permissions to access google auth tokens
Well, I came here only after realizing how bad I was at it in this
particular case.

Should the accounts administration help revoke access even for android
devices/apps?

The list there doesn't show android apps allowed access to the google
account.

https://www.google.com/accounts/IssuedAuthSubTokens

Nor does google apps dashboard help.

Help me revoke access to an android app already granted access to a
google account either through the device or google accounts through
any browser.

Thanks
RS

On Jun 16, 5:01 pm, Nikolay Elenkov <nikolay.elen...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikolay Elenkov  
View profile  
 More options Jun 17 2011, 7:35 am
From: Nikolay Elenkov <nikolay.elen...@gmail.com>
Date: Fri, 17 Jun 2011 20:35:45 +0900
Local: Fri, Jun 17 2011 7:35 am
Subject: Re: [android-developers] Re: revoke permissions to access google auth tokens

On Fri, Jun 17, 2011 at 8:07 PM, RS <rajeshs...@gmail.com> wrote:
> Well, I came here only after realizing how bad I was at it in this
> particular case.

You should probably says so and say what you tried so far, instead
of just 'oh you guys obviously have no clue'. Might not be the
best strategy to gen an answer.

> Should the accounts administration help revoke access even for android
> devices/apps?

> The list there doesn't show android apps allowed access to the google
> account.

> https://www.google.com/accounts/IssuedAuthSubTokens

> Nor does google apps dashboard help.

> Help me revoke access to an android app already granted access to a
> google account either through the device or google accounts through
> any browser.

Which particular app? At least for me, Chrome to Phone shows in the
IssuedAuthSubTokens page. If the app is using ClientLogin, it won't
show up there though.  I don't think there is an UI for manging granted
tokens in Android, but if you are doing this in code, you might want
to look at AccountManager.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RS  
View profile  
 More options Jun 17 2011, 9:59 am
From: RS <rajeshs...@gmail.com>
Date: Fri, 17 Jun 2011 06:59:59 -0700 (PDT)
Local: Fri, Jun 17 2011 9:59 am
Subject: Re: revoke permissions to access google auth tokens
Sorry if that reply instigated these comments. Am glad you still had
patience to respond.

Chrome to phone is probably showing up there having a server side
component.

As explained in the fist post, am looking for ways to revoke google
account access granted to android apps on the phone. Nope, account
manager doesn't help users. Once an app has gained the cookie/token
through the account manager, it is pretty much out of the way.

While I found revoking is possible for google app engine based apps,
am still hunting for the right answer w.r.t android apps.

And including this thread, there is no relevant answer on the
Internet.

And am hoping that is incorrect and that it would be possible for an
user to clear access granted for individual android apps to a
particular google account. But cold somebody confirm this to be true
or false:
"Since the same auth token as the android system's is shared with
third party apps, there is no way to distinguish requests from
arbitrary apps using this token. Hence revoking on per app basis is
ruled out. The app has access to all google stuff till the android
system's token remains valid on the server. "

Okay that is acceptable but in any case, how to revoke access granted
to an android app (account by account)?  On first attempt by an app,
the android system throws its own activity asking user to allow or
deny an app from accessing tokens of a particular google account.
Don't tokens expire? Second time on, the android system doesn't invoke
user interaction to grant access. The app simply gets a copy of the
(new) token.

Clearing out access to all android apps allowed access to tokens is an
acceptable workaround. But for which google's android apps should I
clear data/cache on android?

Please clarify. AccountManager document doesn't answer this. AOSP on
source.android.com doesn't have relevant code to clear tokens etc.

Thanks for your time,
RS

On Jun 17, 12:35 pm, Nikolay Elenkov <nikolay.elen...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RS  
View profile  
 More options Jun 17 2011, 10:21 am
From: RS <rajeshs...@gmail.com>
Date: Fri, 17 Jun 2011 07:21:05 -0700 (PDT)
Local: Fri, Jun 17 2011 10:21 am
Subject: Re: revoke permissions to access google auth tokens
Simplifying the question:

Am looking for answers from developers (or google engineers) who have
used accountManager.getAuthToken(....) and have come across such a
screen for their own apps:

http://www.appbrain.com/info/fastweb2.png
or
http://chiarg.com/?p=429

Once the user clicks 'allow', how could they undo this action for that
particular android app+account?

Regards,
RS

On Jun 17, 2:59 pm, RS <rajeshs...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikolay Elenkov  
View profile  
 More options Jun 17 2011, 11:28 am
From: Nikolay Elenkov <nikolay.elen...@gmail.com>
Date: Sat, 18 Jun 2011 00:28:59 +0900
Local: Fri, Jun 17 2011 11:28 am
Subject: Re: [android-developers] Re: revoke permissions to access google auth tokens

On Fri, Jun 17, 2011 at 11:21 PM, RS <rajeshs...@gmail.com> wrote:
> Simplifying the question:

> Am looking for answers from developers (or google engineers) who have
> used accountManager.getAuthToken(....) and have come across such a
> screen for their own apps:

> http://www.appbrain.com/info/fastweb2.png
> or
> http://chiarg.com/?p=429

> Once the user clicks 'allow', how could they undo this action for that
> particular android app+account?

It seems that there is no public API to do this.  AccountMangerService has a
revokeAppPermission() method which is both hidden (with @hide) and
not accessible via public APIs. You could probably call it using reflection,
but that is usually not recommended. BTW, access to tokens is granted
by UID, so it's not global for all applications. Check out
/data/system/accounts.db for more details if you have a rooted device.

HTH


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RS  
View profile  
 More options Jun 17 2011, 12:02 pm
From: RS <rajeshs...@gmail.com>
Date: Fri, 17 Jun 2011 09:02:45 -0700 (PDT)
Local: Fri, Jun 17 2011 12:02 pm
Subject: Re: revoke permissions to access google auth tokens
Thanks Nikolay. Very useful pointers. Thank goodness it isn't global
(UID).

Though am using this permission as a developer the question is from a
user point of view who wishes to revoke access, so I'd rather not call
this directly or through reflection. Wish the system had a settings
screen for this instead. Something the user could trust irrespective
of the apps installed.

I do see a couple of bugs requests where people would like to deny
access to specific security permissions to an app (eg: network,
camera, call status, ...) on the whole. This auth token stuff though,
falls in a different sub-category and might be quicker to solve.

Hope a google employee could comment on any future updates to the
account management flow that they might have.

Thanks,
RS

On Jun 17, 4:28 pm, Nikolay Elenkov <nikolay.elen...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RS  
View profile  
 More options Jun 19 2011, 4:51 am
From: RS <rajeshs...@gmail.com>
Date: Sun, 19 Jun 2011 01:51:25 -0700 (PDT)
Local: Sun, Jun 19 2011 4:51 am
Subject: Re: revoke permissions to access google auth tokens
To summarize, I still don't have the answer to the original question
except that it is probably not possible yet.

Original question (User perspective):
Once a user (not a developer) clicks† around and grants an android
app, access to google auth tokens, how could he/she revoke it?

† Clicks: User clicks on an activity that android system throws when
third party apps (utilizing android.permission.USE_CREDENTIALS) try
accessing google auth tokens

Sample screenshots:
  http://www.appbrain.com/info/fastweb2.png
  http://chiarg.com/?p=429

Happy to hear workarounds that can possibly revoke this for all third
party android apps that were granted access once (say revoke through
settings > manage apps > all > google services or partner or some such

> clear data) but without disrupting other google services (gmail,

gtalk, android market, ...) on the device.

Or perhaps do it through the central web based accounts dashboard
(which for now doesn't display info about android apps)
http://www.google.com/url?sa=D&q=https://www.google.com/accounts/Issu...

I could possibly post this on android-platform group as well.

On Jun 17, 5:02 pm, RS <rajeshs...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali  
View profile  
 More options Oct 5 2012, 4:34 am
From: Ali <shak...@gmail.com>
Date: Fri, 5 Oct 2012 01:34:45 -0700 (PDT)
Local: Fri, Oct 5 2012 4:34 am
Subject: Re: revoke permissions to access google auth tokens

I have same question, is there any update on this topic?

It has also been asked on SO and there is just a workaround for it:
http://stackoverflow.com/questions/5805657/revoke-account-permission-...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »