googleapis / googleapis/google-cloud-java
[google-auth-library-java] AppEngineCredential depends on legacy bundled service
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 154
描述
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
贡献指南
评估
这个 Issue 还没有评估数据。