-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency: identity.clearAllCachedAuthTokens
API availability
#648
Comments
identity.clearAllCachedAuthTokens
availabilityidentity.clearAllCachedAuthTokens
API availability
Edge is not supporting this API. I'll work with internal teams to get the document updated. |
This is a Google/Chrome-only API. There was a recent feature request for a similar API ( |
@mukul-p @Rob--W To clarify, They're not for use with |
Yes. Note that this only removes the token from the cache, it does not revoke it. If you want to revoke the token, an answer is available at https://stackoverflow.com/questions/17337107/google-packaged-app-identity-api-removecachedauthtoken. From the answer it is also apparent that the token is tied to Google's API.
Indeed.
The regular browser cache is used. This is not explicitly documented. Documentation is at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/identity/launchWebAuthFlow and https://developer.chrome.com/docs/extensions/reference/api/identity#method-launchWebAuthFlow |
Thanks for the clarification!
It'd be great if the Chrome team updated their documentation to clarify. In particular, clearAllCachedAuthTokens mentions "De-authorizes the user from all auth flows" which shares the "auth flow" terminology of web auth flow Does the Chrome team have a way to suggest changes? (I just see an "Is it helpful" voting button)
Does that suggest we'd need to request |
This is dependent on the OAuth provider. From the OAuth2 perspective, only the output (token) matters. Any potential side effects from the intermediate steps to get there are site-specific. E.g. the user could logs in to some site, or even already be logged in. Unconditionally clearing cookie state is not really useful. I cannot offer more concrete advice here. |
Hi @twschiller, you can use the "File a bug" link in the footer which goes here: https://issuetracker.google.com/issues/new?component=1400036&template=1897236 Please do file this, it seems like a good thing to clarify :) |
Description
identity.clearAllCachedAuthTokens
endpoint is inconsistently supported across browsers. It looks like it might only be only available on Chrome?Documentation
Related Discussions
The text was updated successfully, but these errors were encountered: