google-cloud-endpoints

Google App Engine with Android - testing endpoints on real device

瘦欲@ 提交于 2019-11-27 18:33:36
问题 i've been following the tutorial in Creating an Endpoints Backend from an Android Project. Everything is compiling and looks promising. The backend is up, i changed CloudEndpointUtils#LOCAL_ANDROID_RUN to 'true'. but when i try to test the app on a real device (not emulator) im failing on - java.net.SocketException: failed to connect to /10.0.2.2 (port 8888) after 20000ms: isConnected failed: EHOSTUNREACH (No route to host) So i looked at CloudEndpointUtils and saw that setting LOCAL_ANDROID

using blobstore with google cloud endpoint and android

*爱你&永不变心* 提交于 2019-11-27 17:13:21
I am developing an app-engine connected android project using the eclipse plugin. One aspect of the app is to allow user Alpha to send pictures to user Bravo. To do that I have the following setup: User Alpha posting: send image to my app engine server through endpoints server stores image in blob store server stores blobkey in datastore User Bravo getting: server gets blobkey from datastore server gets image using blob key server sends image to android app using endpoints This setup takes upward of two (2) minutes from when my android app sends an image to when I can see it in the blob sore.

Facebook login in Google Cloud Endpoints

你离开我真会死。 提交于 2019-11-27 17:07:07
Can someone explain steps to implement login process with other OAuth2 providers This link Google Cloud Endpoints with another oAuth2 provider gives little info about writing custom authentication, but I guess for beginner like me that's not enough, please give detailed steps. Especially, interested in Facebook. PaulR You need to implement Facebook's client side APIs according to their documentation and the environment you are deploying your client app to (Browser vs iOS vs Android). This includes registering your app with them. Your registered app will direct the user to go through an

Authenticating your client to Cloud Endpoints without a Google Account login

∥☆過路亽.° 提交于 2019-11-27 12:53:19
问题 I have been doing extensive research on how to authenticate your client (Android, iOS, web-app) with Cloud Endpoints without requiring your user to use their Google account login the way the documentation shows you. The reason for this is that I want to secure my API or "lock it down" to only my specified clients. Sometimes I will have an app that does not have a user login. I would hate to pester my user to now sign in just so my API is secure. Or other times, I just want to manage my own

How do I restrict Google App Engine Endpoints API access to only my Android applications?

谁说我不能喝 提交于 2019-11-27 12:24:50
I am an Android developer building my first Google App Engine (java) back-end for my apps. I don't want anybody else to access this API other than my app. (I plan to use App engine for verifying InApp purchases in my Android app). My data is not relevant to users so, I don't want users to be able to access my API even if they are logged in with their Google accounts (on web or Android devices). I followed the steps mentioned in - "Specifying authorized clients in the API backend" ( https://developers.google.com/appengine/docs/java/endpoints/auth ) like generating client IDs and add them in

How do I protect my API that was built using Google Cloud Endpoints?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 11:42:39
The API is a backend to a mobile app. I don't need user authentication. I simply need a way to secure access to this API. Currently, my backend is exposed. The documentation seems to only talk about user authentication and authorization, which is not what I need here. I just need to ensure only my mobile app can talk to this backend and no one else. Yes, you can do that: use authentication to secure your endpoints without doing user authentication. I have found that this way of doing it is not well documented, and I haven't actually done it myself, but I intend to so I paid attention when I

Custom Authentication for Google Cloud Endpoints (instead of OAuth2)

ぐ巨炮叔叔 提交于 2019-11-27 10:17:48
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 user session + CSRF token in our existing API. Is there an elegant way to do this without adding stuff

Google Cloud Endpoints limitations… any proposed solutions?

一世执手 提交于 2019-11-27 09:57:08
问题 Am I correct in thinking that the goodness of Cloud Endpoints comes with the following limitations: The REST Api cannot be deployed to a custom domain (it'll remain on appspot.com). The only authentication supported is OAuth against Google accounts. Corollary: it isn't currently possible to create a user login/session-tracking mechanism that is Google-accounts-agnostic (e.g., with email as username and a password). Is there any plan to do away with these limitations and if so, what is the ETA

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

寵の児 提交于 2019-11-27 08:49:47
问题 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

Cloud Endpoints: Control who can execute API through API Explorer

独自空忆成欢 提交于 2019-11-27 08:38:33
问题 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. 回答1: Identify that