google-cloud-endpoints

Custom Authentication for Google Cloud Endpoints (instead of OAuth2)

做~自己de王妃 提交于 2019-12-17 10:10:49
问题 We are super excited about App Engine's support for Google Cloud Endpoints. That said we don't use OAuth2 yet and usually authenticate users with username/password so we can support customers that don't have Google accounts. We want to migrate our API over to Google Cloud Endpoints because of all the benefits we then get for free (API Console, Client Libraries, robustness, …) but our main question is … How to add custom authentication to cloud endpoints where we previously check for a valid

Angular Js and google api client.js (gapi)

家住魔仙堡 提交于 2019-12-17 06:29:52
问题 It took me one day to make it works so I think my experience may be useful from someone. And maybe some others will find improvement. So I start angularJS two days ago. And I want it works with Google Cloud Endpoints to create a backend interface. Here comes the trouble for me. The javascript client for gapi comes with asynchronous loading, so angular initialization will crash having gapi undefined. So you need to bootstrap angular when gapi is initialized: remove ng-app="myApp" Add <script

Can a two Entities of the same Kind have the same ID if the parent is different?

天大地大妈咪最大 提交于 2019-12-14 04:09:04
问题 I know that datastore will auto generate a unique ID for root Entities. But what about Entities of the same Kind that have different Parents? Will datastore auto generate unique IDs for Entities for the same Kind with different parents (of same Kind)? e.g. User->Post . Could two different Users conceivably each have a Post with the same ID? 回答1: I wrote a JUnit test for you. It uses lombok, but you can write out the getters and setters as well. import com.google.appengine.tools.development

Google App Engine configuring Endpoints API

旧时模样 提交于 2019-12-14 03:48:25
问题 I have a problem configuring Endpoints API. Any code i use, from my own, to google's examples on site fail with the same traceback WARNING 2016-11-01 06:16:48,279 client.py:229] no scheduler thread, scheduler.run() will be invoked by report(...) Traceback (most recent call last): File "/home/vladimir/projects/sb_fork/sb/lib/vendor/google/api/control/client.py", line 225, in start self._thread.start() File "/home/vladimir/sdk/google-cloud-sdk/platform/google_appengine/google/appengine/api

Send Images/Videos from Android/iOS to Google Cloud Endpoints

久未见 提交于 2019-12-14 02:22:14
问题 I'm really needing your help/suggestion/clue/etc. I'm developing an application for Android and iOS which will allow the user to upload pictures and videos. What I'm trying to do: 1 - Android/iOS send picture/video to my Google Cloud Endpoint; 2 - Google Cloud Endpoint upload the image/video to Google Cloud Storage; (Works) 3 - Google Cloud Endpoint retrieve the servingURL from Google Cloud Storage and send back to Android/iOS; (Works) 4 - Android/iOS stream the picture/video by its URL.

Google Cloud Endpoints - Method does not exist - OpenAPI yaml specification

烈酒焚心 提交于 2019-12-14 02:20:16
问题 I'm trying to setup a NodeJS REST API using Google Cloud Endpoints and Google App Engine. I've cloned the offical sample project from GitHub and set up Google Cloud Endpoints using the Quickstart. Out of the box, it works fine,but I tried adding another API endpoint for a GET request at / , but the response I get after I deploy and make the request is as follows: { "code": 5, "message": "Method does not exist.", "details": [ { "@type": "type.googleapis.com/google.rpc.DebugInfo", "stackEntries

Cloud Endpoints with Firebase Authentication

拈花ヽ惹草 提交于 2019-12-13 17:41:13
问题 What I am trying to accomplish is I want to limit the use of the web service running on Google App Engine to my app users that login with Firebase Auth. How can I add security rules to the openAPI specification to allow users to request only information of their uuid? So users will just be able to use the web service to get the information about their uuids, if they are logged in to Firebase Auth with that uuid 回答1: You'd have to pass along the ID token of your user from the client app to

Unable to create Android OAuth2 client ID (duplicate fingerprint)

扶醉桌前 提交于 2019-12-13 16:21:42
问题 When creating a client ID for Android in the Google Cloud Platform developer console, I get the following popup: Duplicate fingerprint The fingerprint you specified is already used by an Android OAuth2 client ID in this project or another project As the popup states, I do have another project that has the same SHA-1 fingerprint. What I don't understand is why I can't use the same SHA-1 fingerprint (signing certificate) with multiple projects? This has serious implications if you use the same

Google Compute Engine VM constantly crashes

安稳与你 提交于 2019-12-13 16:20:58
问题 On the Compute Engine VM in us-west-1b, I run 16 vCPUs near 99% usage. After a few hours, the VM automatically crashes. This is not a one-time incident, and I have to manually restart the VM. There are a few instances of CPU usage suddenly dropping to around 30%, then bouncing back to 99%. There are no logs for the VM at the time of the crash. Is there any other way to get the error logs? How do I prevent VMs from crashing? CPU usage graph 回答1: This could be your process manager saying that

What is the URL to access a Hello-World Google Cloud Endpoint service?

白昼怎懂夜的黑 提交于 2019-12-13 13:07:10
问题 I've generated a Google Endpoint AppEngine project in Eclipse by using the Generate AppEngine BackEnd as described in this blog post. What that post does not describe however, and which the official Google Docs describe poorly as well, is which URL I can access that service with locally? The service generated has one generated endpoint called DeviceInfoEndpoint. The code is shown below as well as the code in web.xml. Which URL should I access listDeviceInfo() with given that I'm hosting on