googleapis / googleapis/google-cloud-java
[google-auth-library-java] AppEngineCredential depends on legacy bundled service
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 1.2k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 154
Description
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.
```
GoogleCredentials credentials = AppEngineCredentials.newBuilder().setScopes(scopes).setAppIdentityService(AppIdentityServiceFactory.getAppIdentityService()).build();
```
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:
```
import com.google.appengine.api.appidentity.AppIdentityService;
import com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult;
import com.google.appengine.api.appidentity.AppIdentityServiceFactory;
```
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.