Skip to content
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

Error: was not able to retrieve AAS token with the provided OAuth token #194

Open
floslo opened this issue Oct 24, 2024 · 2 comments
Open

Comments

@floslo
Copy link

floslo commented Oct 24, 2024

I follow https://github.com/EFForg/apkeep/blob/master/USAGE-google-play.md to obtain the oauth_token but the next step results in
Error: was not able to retrieve AAS token with the provided OAuth token. Please provide new OAuth token and try again.

I'm using a regular personal google account without any special settings. 2FA not activated. Retries in Chrome and Firefox with v0.17 and v0.16 of apkeep-x86_64-pc-windows-msvc.exe all result in the same error message.
The google account is not currently associated with an android device. Is such an association a prerequisite?

@floslo
Copy link
Author

floslo commented Oct 27, 2024

Resolved: the error was due to a syntax error in the https://github.com/EFForg/apkeep/blob/master/USAGE-google-play.md instruction line
apkeep -e '[email protected]' --oauth-token 'oauth2_4/...'

The solution is to not enclose the oath token value in single quotes. The correct syntax is
apkeep -e '[email protected]' --oauth-token oauth2_4/...

The google account is not required to be associated with an android device.

@floslo
Copy link
Author

floslo commented Oct 27, 2024

Please update the guide at https://github.com/EFForg/apkeep/blob/master/USAGE-google-play.md with the correct syntax.

Also add information about the AAS token. Does it automatically expire? After how long? Can it be manually revoked? How?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant