0

I am using GAE to build an application. I have enable some API's & obtain the keys on the Credentials Menu that I need to put so my application can work on private or public access.

Is there any method or a Function or a Libraries in Java, Python, PHP, and Go to retrieve those keys and store it in a variable? I could not find this in the GAE Documentation or General Question.

eQ19
  • 9,880
  • 3
  • 65
  • 77

1 Answers1

1

There's no hard set answer for this. I would read these

GAE: best practices for storing secret keys? Read both answers not just the accepted one.

Client Secrets File

Best practices for securely using API keys

To do the actual OAuth I would recommend decorators

Community
  • 1
  • 1
Ryan
  • 2,512
  • 1
  • 13
  • 20
  • I have came before to the documentation you mentioned. As far as I could understand those documentation are explaining how to 'store'. My question is asking how to 'retrieve' for storing in a variables i.e. $x = Retrieve_function(y); //x = the keys – eQ19 Jan 07 '15 at 17:18
  • Look at the link for decorators, scroll down to where it says OAuth2DecoratorFromClientSecrets (talks about oauth_aware) on how to use it. If you just want to get it into a variable you can open the file and read the contents. Its a json file, so the python json reader would work. – Ryan Jan 07 '15 at 19:21