google-cloud-endpoints

Facebook login in Google Cloud Endpoints

筅森魡賤 提交于 2019-11-26 22:31: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. 回答1: 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

Authenticate my “app” to Google Cloud Endpoints not a “user”

ぃ、小莉子 提交于 2019-11-26 21:53:01
问题 What I'm trying to do is to authenticate my Android app to the Google Cloud Endpoint. Basically the endpoints should only allow my Android app to access the methods and nothing else. I have done these things - Create a client id using my SHA1 value in Eclipse in the Google Cloud Console. Create a web client id in the Google Cloud Console for my endpoint project. Add both these client id's in the "@Api" mentioned on each endpoint. Add an extra "user" parameter in the endpoint methods.

using blobstore with google cloud endpoint and android

谁都会走 提交于 2019-11-26 18:54:34
问题 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

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

限于喜欢 提交于 2019-11-26 15:59:32
问题 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:/

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

℡╲_俬逩灬. 提交于 2019-11-26 15:42:14
问题 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. 回答1: Yes, you can do that: use authentication to secure your endpoints without doing user authentication. I have found that this way of doing it

Getting raw HTTP Data (Headers, Cookies, etc) in Google Cloud Endpoints

天大地大妈咪最大 提交于 2019-11-26 12:28:14
问题 I am wondering if it is possible to collect raw HTTP data in a Cloud Endpoint. I can\'t seem to find anything in Google\'s documentation, but App Engine\'s Twitter told me that it was (https://twitter.com/app_engine/status/305747445017624576). If so, can I please have syntax for it? I am aware that the API for GCE is still in its early stages, and any help would be greatly appreciated. 回答1: Add an HttpServletRequest parameter to your endpoint method, e.g. @ApiMethod public MyResponse

GAE cloud endpoints - Api not updating after deploy

情到浓时终转凉″ 提交于 2019-11-26 12:12:17
问题 I\'m starting to use cloud endpoints in my GAE project but have been running into issues with the api not updating on the server. localhost:8888/_ah/api/explorer is ok. But when I deploy, nothing changes. myapp.appspot.com:8888/_ah/api/explorer is bad Further investigation shows the url end points update example: https://myapp.appspot.com/_ah/api/myapp/v1/foo/list But the loaded client api is still incorrect. example: gapi.client.load(\'myapp\', \'v1\', callback, url); gapi.client.myapp.foo

Gmail REST API : 400 Bad Request + Failed Precondition

邮差的信 提交于 2019-11-26 03:59:20
问题 I\'m trying to send mails based on Gmail REST API using google java api services. I have configured through Google Develover Console an application client and downloaded p12 and json files. I have used this sample programs, https://developers.google.com/gmail/api/guides/sending#sending_messages... This sample works, but this is based on GoogleAuthorizationCodeFlow. I want just to work from server-to-server, invoking directly, not opening a browser to get an access token... and I got it (the

Google Cloud Endpoints and user's authentication

我是研究僧i 提交于 2019-11-26 03:07:02
问题 I\'m currently new into the AppEngine world, and wanting to create a backend using Cloud Endpoints for a mobile application that I\'m developing. One of my problem right now is about the user\'s authentication. I\'ve been following the Udacity\'s MOOC on App Engine, and they taught us how to authenticate the user for API request using a Google Accounts. On the backend side, we simply have to add a User parameter to our method, and check if the user is signed in. As far as I know, this user