google-cloud-endpoints

Integrate firebase auth with google app engine cloud endpoints

二次信任 提交于 2019-12-02 21:06:02
Can someone specify (with some sample code) how to verify the firebase token in an google cloud endpoint? The recently asked question does not clarifiy it at all ( How to integrate firebase authentication with google app engine endpoints ) Google Authentication in endpoint is done automatically by adding the User Parameter to an endpoint. Facebook Tokens can be verified in an cloud endpoint with the facebook graph api like this: @ApiMethod(name = "endpoint.addUser", httpMethod = HttpMethod.POST) public ResultObject addUser(HttpServletRequest request, User pUser) throws OAuthRequestException {

Objectify with Cloud Endpoints

心不动则不痛 提交于 2019-12-02 19:19:41
I am using appengine cloud endpoints and objectify. I have previously deployed these endpoints before and now I am updating them and it is not working with Objectify. I have moved to a new machine and running latest appengine 1.8.6. Have tried putting objectify in the classpath and that did not work. I know this can work, what am I missing?? When running endpoints.sh: Error: Parameterized type com.googlecode.objectify.Key<MyClass> not supported. UPDATE: I went back to my old computer and ran endpoints.sh on same endpoint and it worked fine. Old machine has 1.8.3. I am using objectify 3.1.

deploying react express app on google app engine Endpoints giving error message when i request url?

拜拜、爱过 提交于 2019-12-02 17:28:11
问题 I am trying to deploy my react express app on google app engine. Everything works fine on localhost but when I deploy I get a 404 error: I assume this could be something wrong with my handlers but i'm not to sure, help would be much appreciated. Cannot GET / Failed to load resource: the server responded with a status of 404 () This is what the console log says: httpRequest: { latency: "0.006s" referer: "-" remoteIp: "2001:8000:11d3:ed00:4854:5aba:9f93:dd47" requestMethod: "GET" requestUrl: "/

Cloud Endpoints HTTP Cookies

心已入冬 提交于 2019-12-02 16:26:28
I am implementing Cloud Endpoints with a Python app that uses custom authentication ( GAE Sessions ) instead of Google Accounts. I need to authenticate the requests coming from the Javascript client, so I would like to have access to the cookie information. Reading this other question leads me to believe that it is possible, but perhaps not documented. I'm not familiar with the Java side of App Engine, so I'm not quite sure how to translate that snippet into Python. Here is an example of one of my methods: class EndpointsAPI(remote.Service): @endpoints.method(Query_In, Donations_Out, path='get

GWT and Google Cloud Endpoints

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 15:44:04
A few days ago I've started developing a Backend for Mobile Applications using Google App Engine and Google Cloud Endpoints . This tutorial shows how the endpoints are getting generated automatically, as well as the client library for Android. So we have our Entity: @Entity public class Person implements IsSerializable{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; private String name; //... } And the endpoint for this class: @Api(name = "personendpoint") public class PersonEndpoint { @ApiMethod(name = "getPerson") public Person getPerson(@Named("id") Long id) { ...

Google App Engine vs Firebase

余生长醉 提交于 2019-12-02 13:59:29
I am trying to decide which option to go with. (or another if it is better) This is for a messaging type app where there will be high volume of notifications and database writes. Option 1 - Google App Engine using Cloud Endpoints and Cloud Datastore Pros: Able to build out an API the way I would like. Scalable Cons: More work implementing a notification system. (Which will end up being Firebase Cloud Messaging) Option 2 - Firebase Pros: Able to use the Firebase Database, Firebase User Authentication, Firebase Cloud Messaging(notifications) Detailed use statistics for all devices Cons: No API

Debugging Google Web Application projects with Google Cloud Endpoints in Eclipse

血红的双手。 提交于 2019-12-02 11:05:11
My iOS app uses a Java-based server and communicates with it using Google Cloud Endpoints. Normally the server listens on https://myservice.appspot.com/_ah/api/rpc . How can I debug my server code? After I run it with Debug As | Web Application inside Eclipse and change its URL to https://localhost:8888/_ah/api/rpc the client cannot connect. I don't think it's a firewall issue because URLs with localhost:8888 work for other client-server pairs. So does one need to take any special steps for debugging code in Google Web Application projects with Google Cloud Endpoints in Eclipse, and is there a

deploying react express app on google app engine Endpoints giving error message when i request url?

人盡茶涼 提交于 2019-12-02 09:59:22
I am trying to deploy my react express app on google app engine. Everything works fine on localhost but when I deploy I get a 404 error: I assume this could be something wrong with my handlers but i'm not to sure, help would be much appreciated. Cannot GET / Failed to load resource: the server responded with a status of 404 () This is what the console log says: httpRequest: { latency: "0.006s" referer: "-" remoteIp: "2001:8000:11d3:ed00:4854:5aba:9f93:dd47" requestMethod: "GET" requestUrl: "/" responseSize: "139" status: 404 userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2)

Get the current user from BlobstoreUploadHandler

為{幸葍}努か 提交于 2019-12-02 08:46:21
问题 I want to get the current user from BlobstoreUploadHandler. I'm using endpoints for my web application, but (outside of Endpoints) I built /uploadUrl to upload files to the Blobstore. The image uploads correctly. So, I need to link the image uploaded to the user, but users.get_current_user() returns None . On the frontend side the user is logged using OAuth2. Any idea for this issue? If I use endpoints.get_current_user() raise an error: No valid endpoints user in environment This is my code:

How to create API methods in Google App Engine that have several decedents/ancestors

白昼怎懂夜的黑 提交于 2019-12-02 08:32:03
问题 I am having trouble understanding how to structure an ancestor tree with several decedents. Suppose I have a model like this (every Entity has a Long id ): User -Post -Comment Where the Comment is the grandchild of the User . What is really annoying is to insert a Comment I need to generate the Key of the Post . And to generate the Key of the Post I also need to know the ID of the User : Key<Post> postKey = Key.create(Key.create(User.class, userId), Post.class, postId); This is a problem for