Application default Credential

90 views
Skip to first unread message

Dev TT

unread,
Mar 12, 2017, 3:04:20 PM3/12/17
to Google App Engine
Hi,

I am trying to use GoogleCredential.getApplicationDefault() to get my default service account credentials. This is running on deplyod code on Google App Egnine. I m getting GoogleCredntial Object but all methods like getAccessToken get ServiceAccount etc are returning null. Can anyone help me out?

Regards.

George (Cloud Platform Support)

unread,
Mar 13, 2017, 10:03:42 AM3/13/17
to Google App Engine
Before accessing the credentials object, one needs to create application default credentials, as described in the "Google Application Default Credentials" documentation page. A step-by-step procedure is given there  at sub-chapter "How the Application Default Credentials work". One needs to set up default credentials using the developers' console. 
Reply all
Reply to author
Forward
0 new messages