문제

When employing the Remote API for Java for accessing another application's GAE datastore (as suggested here), do I have to use an admin password (as shown in sample code) or can I use service account credentials instead. Calls to the Remote API should originate in an App Engine Client, so non-password authentication seems to be the (only) sensible choice.

도움이 되었습니까?

해결책

Of course you can! It's as simple as that: RemoteApiOptions.useServiceAccountCredential

PS: You'll have to create a service account and download the key first. You have to grant the "AppEngine Admin"-role to the service account.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top