-
Notifications
You must be signed in to change notification settings - Fork 233
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
AppEngineCredential depends on legacy bundled service #1384
Comments
And why |
I guess you meant From the code, it looks like The App engine code to add scopes: For the Java specific question, I will leave it to our Java expert. |
For now, we have to bring back legacy service and use the old way to get a token that with scopes. |
Also for the code you pointed above: https://github.com/googleapis/google-auth-library-java/blob/main/oauth2_http/java/com/google/auth/oauth2/DefaultCredentialsProvider.java#L197-L199 |
Hi @yonghaoy Sorry for the delay is response, but wanted to follow up to see if this is still an issue that you're seeing with App Engine. The GAE 7 Standard check is something that we're trying to figure out and I've posed a question in #1376 as well. We'll try to figure out how to proceed with this since it seems to be a legacy thing.
Can you explain a bit more about what you mean by Can you try and use the latest versions of the auth library and let us know if you're still seeing this issue? |
Hey @lqiu96 thanks for checking back, it's been a while and I forgot the detail. 2: "does not work" meaning
✅ Current walk around - that's how we get billing scope:
|
When you run What GAE env are you running on? I'm the potential issue may be related to the GAE 7 check we have.
How are you verifying that the new Credentials contains the scopes you wanted? Can you show me the output of ADC.toString() before and after the calls to i.e.
I believe most Credential implementations of |
|
Hello, we are upgrading GAE from Java 8 to 11 and also trying to get ride of legacy bundled service .
Here is how we generate default AccessToken today.
The reason we do it this way is because if using
GoogleCredentials.getDefaulCredential
, because the call to .createScoped will silently proceed by doing nothing?Question:
1: How to use AppEngineCredentials without turning on legacy bundle? Because I get feature not enabled error when calling without turning it on
2: Do we still need to include
appengine-sdk1.0
in our dependency? As those imports are there:Thanks
The text was updated successfully, but these errors were encountered: