google-cloud-endpoints

GAE User API with OAuth2

怎甘沉沦 提交于 2019-12-08 05:02:37
问题 Inside my servlets, this is how I authenticate user UserService userservice=UserServiceFactory.getUserService(); User user = userservice.getCurrentUser(); if(user == null){ response.redirect(userservice.createLoginURL("../userhome")); } More recently, in the same project I used Google Cloud Endpoints with authentication to access data using a JS client. The JS client authorizes using Oauth gapi.auth.authorize(...); Although they belong to the same App Engine Project and share the same

What is the best way to auth, identify and store delicate information about users?

旧时模样 提交于 2019-12-08 04:50:04
问题 With the purpose of learning about endpoints I'm building an app called "Where Are You?". The app lets users request the location of other users. The idea is that it does so by letting the user select a contact, lookup the contact by phone number in my endpoint. If found it means that the contact have the app and GCM is sent requesting the location. If the contact isn't found a SMS is sent with an url which will request the location through a browser, perform a http post of said location and

unable to connect to my google endpoints with my service object

风流意气都作罢 提交于 2019-12-08 04:41:38
问题 I have generated my client library from my endpoints, and also passed the appropriate credential (the client ID is 100% correct) for my authenticated call to the endpoints. But I am still getting this error when I run my codes: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential$RequestHandler.intercept(GoogleAccountCredential.java:286) at com.google.api.client.http

How to run/deploy Google AppEngine Managed vms using Gradle

ぃ、小莉子 提交于 2019-12-08 04:13:23
问题 I've pushed, run and tested a managed VM with custom runtime as an AppEngine application. Now I want to make it multi-module, with the default module being a Google Cloud Endpoint configured to work with Android. Hence, I'm using Gradle as my build system. Now, I noticed that Google has made some initial commits for gcloud preview app run/deploy into the gradle-appengine-plugin: https://github.com/GoogleCloudPlatform/gradle-appengine-plugin/commit/2e4a2b8abb7ec7905012f1f9c12adea7010a41b7 How

GAE Endpoint Library for C# in Xamarin

久未见 提交于 2019-12-08 03:54:33
问题 I currently using Android Studio to built my GAE endpoints and app. However, I want to move to Xamarin, so I can build an iOS version of my app. My plan is to continue to use Android Studio to build the endpoint client library and "migrate" it to Xamarin. However, my challenge is finding any useful information to make this work. Can someone advise? Much appreciate it! 回答1: Step 1: Install pip if you don't have one sudo easy_install pip Step 2: Install google client library generator pip

How to access app engine datastore by android app?

大城市里の小女人 提交于 2019-12-08 02:15:16
问题 I have created app engine app (using Python)(devappdemo.appspot.com). Now i want to create an android app for the same which should access the same datastore. I googled it and i found that it can be done with CloudEndPoints but dont know from where to start how it can be done. Please suggest any tutorials or step by step instructions to do it. 回答1: Google Cloud Endpoints would be the easiest way at the moment to get started with it. Here is the overview and tutorial. Cloud Endpoints will help

AppEngine Cloud Endpoints and custom Users service

此生再无相见时 提交于 2019-12-08 00:29:20
问题 Is it possible to use a custom Users service (a service that implements UsersService interface) with Google AppEngine endpoints? Let's take the example from Google AppEngine website @ApiMethod(name = "greetings.authed", path = "greeting/authed") public HelloGreeting authedGreeting(User user) { HelloGreeting response = new HelloGreeting("hello " + user.getEmail()); return response; } When a request is made to the application and this endpoint is hit it somehow contacts the Users service and

App engine + endpoint generating a string instead of byte array as method argument

旧城冷巷雨未停 提交于 2019-12-07 18:25:56
问题 I have GAE + endpoints working between an Android client and app engine backend. I'm now at the point where I want to store a small image as a Blob datatype using JDO. I have the following two methods in my model's backend: public byte[] getPicture() { if (picture == null) { return null; } return picture.getBytes(); } public void setPicture(byte[] bytes) { this.picture = new Blob(bytes); } However, when I generate my endpoint for my Android client, the setPicture(byte[] bytes) method

Google Cloud Endpoints linking iOS client issues

时间秒杀一切 提交于 2019-12-07 16:59:27
问题 This problem arises from the fact I don't completely understand static libraries in iOS and the docs from google seem to be a little sparse. I am trying to use Google Cloud Endpoints for my mobile backend. I generate the .m and .h files for my client library. Then I created a new project(OwnItApi), dragged the libGTLTouchStaticLib.a static library from GTL.proj to this new project. Then I add the generated files .m and .h files to this project. I add all the .m files to the Compile Sources

Can't connect to local gae endpoints from Genymotion emulator

ε祈祈猫儿з 提交于 2019-12-07 15:28:29
问题 It's a simple helloworld project using endpoints generated from MyBean and MyEndpoint classes which come default with the Endpoints module . The emulator I use is Genymotion which I connect to through the /10.0.2.2 ip. When I access the endpoints server locally "localhost:8080" in my web browser it works just fine but when I run/debug it using emulator in AndroidStudio I get this timeout exception : -3571/com.serjsmor.anotherbackend W/System.err﹕ java.net.SocketTimeoutException: failed to