google-cloud-endpoints

How can I upload an thumbnail image (blob) at the same time as an Entity into a datastore in google app engine?

你说的曾经没有我的故事 提交于 2019-11-28 14:45:54
I Just started using google app engine today, and I have fallen in love with endpoints. I made one very easily that will store an object in the datastore that just has a few string values. But I also want a small thumbnail image to go along with that datastore entity. I understand how to upload blobs from android using an HttpServlet. I was thinking of using the id of the datastore entity as the image's name in the blobstore, but I dont know how to connect the two events since I would upload the Entity to the datastore, and then the blob after that request. Does anyone know how I can get an

Cloud Endpoints: Control who can execute API through API Explorer

限于喜欢 提交于 2019-11-28 14:24:46
Everyone who successfully authenticates through Google account would be able to execute the API through the API Explorer. I would like to limit the ability to execute the API through API Explorer only to some users. But at the same time have the API accessible for all users of my Android and iOS apps. Security in the case of at least Android App is facilitated through the Android Client Id and SHA fingerprint. So, the scope here is to NOT include the App access security. sam Identify that the request is coming through the API explorer. One way is through the origin/referrer in the headers. For

How do I secure my Google Cloud Endpoints APIs with Firebase token verification?

大兔子大兔子 提交于 2019-11-28 13:28:12
My setup: Java backend hosted on Google App Engine containing APIs that were created using Google Cloud Endpoints Mobile client applications containing generated client libraries for the endpoints mentioned above. Also integrated with Firebase for authentication and the database. My intention is that a user of the mobile client applications will be able to log in to the mobile app using Firebase authentication, then connect to any of the backend APIs, which in turn will do some processing and then read or write data to/from the Firebase database. To secure the APIs on the server, I think I'll

appengine endpoint Failed to retrieve API configs with status: 500

旧时模样 提交于 2019-11-28 13:26:33
I run appengine local dev server in eclipse with params 0.0.0.0 When I try to access any of the methods I get the following error. I get the same error if I try to access api explorer http://localhost:8888/_ah/api/explorer Notes: I just updated my app engine server to java 7. Does anyone know how to fix this problem? java.io.IOException: Failed to retrieve API configs with status: 500 at com.google.api.server.spi.tools.devserver.ApiServlet.getApiConfigSources(ApiServlet.java:102) at com.google.api.server.spi.tools.devserver.ApiServlet.initConfigsIfNecessary(ApiServlet.java:67) at com.google

GoogleAccountCredential name is null despite calling setSelectedAccountName (Android 6.0)

穿精又带淫゛_ 提交于 2019-11-28 12:09:17
I've created an endpoint using a secured backend and have been using it since March on an app I'm building (source docs here ). I recently installed the latest version to my Android 6.0 device and an odd error popped up (it works perfectly on 4.2.2 & 5.1). The specific error is: IllegalArgumentException: the name must not be empty: null Which I traced to an error with the credential, you can see the code below. On Android 6.0 account may be "user@gmail.com" but the string 'test' turns out to be null! Is there something specific about 6.0 that changed GoogleAccountCredential? public static

Cloud endpoints oauth2 error

你。 提交于 2019-11-28 11:47:11
I just recently was able to refactor my app engine application to support Cloud Endpoints after watching the IMO helpful GDL episodes on YouTube. I'm testing my site using the javascript client to handle authorization and then return a list of items which mostly works. But when I'm calling the endpoint to return the list of items I get this set of errors in my App Engine logs: I 2013-03-14 08:52:14.748 Checking for id_token. W 2013-03-14 08:52:14.748 id_token verification failed: Wrong number of segments in token: ya29.AHES6ZSpbeiTPTOJhCTtRdypgldcrRBQBKH8oQ8Y_FpxG5-Lr3OW6dE I 2013-03-14 08:52

Error generating google cloud endpoint client libraries

末鹿安然 提交于 2019-11-28 07:00:06
During last weeks I've been developing an app using GAE/J and Google Cloud Endpoints . I created my custom endpoints (using annotations) and although I had quite a lot of problems, I could solve them and everything was working rather fine. But now (22/04/2013) I tried to make changes in an endpoint method, and suddenly the Google Eclipse Plugin is not generating the client libraries anymore! I tried to delete all the generated api files from my project, but nothing worked. I've even downloaded Eclipse again, installed all the last versions of GPE and GAE SDK and started a new project from

Appengine with Google Cloud Endpoints and Guice

有些话、适合烂在心里 提交于 2019-11-28 06:59:47
So i want to use Guice in Appengine with Cloud Endpoints to inject my services, or daos - pretty common I guess, but I found no tutorial for this. Official Guice for Appengine documentation seems to be here: https://github.com/google/guice/wiki/GoogleAppEngine When configuring Guice you set up the com.google.inject.servlet.GuiceFilter to intercept every request "/*". And at some point you must initialize the modules. Like the documentation says a good place to do that is a ServletContextListener. One special kind of Module are ServletModules, that map request-Paths to Servlet-Classes, instead

Cannot access API explorer on localhost

只愿长相守 提交于 2019-11-28 06:28:11
I'm trying to build an Endpoints application, but am new to Google App Engine. As I understand it, there's some kind of API Explorer included in the SDK that should let me test/verify my API -- the docs say: "Test the API backend in the Google APIs Explorer by navigating to http://localhost:8080/_ah/api/explorer ". But I can't find any documentation of what API Explorer actually is, does, or looks like. In any case, when I try to hit that URL, I get immediately redirected to https://developers.google.com/apis-explorer/?base=http://localhost:8080/_ah/api#p/ , which tells me nothing useful, and

GAE+Objectify - Parameterized type com.googlecode.objectify.Ref not supported

橙三吉。 提交于 2019-11-28 05:54:55
问题 I am using Google App engine1.9.3, Eclipse, Objectify5.03. My Class is as follows: import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Load; @Entity public class User { @Id private Long userId; private String userName; @Load private Ref<UserDetails> userDetails; @Load private Ref<UserPassword> userPassword; //getters & setters } When I try creating the google endpoint