google-cloud-endpoints

How to build API client library using Gradle for my android app

可紊 提交于 2019-12-11 07:17:24
问题 I just generated my Endpoint API client library Bundle, and according to the instructions on its README file, this is what it says: This is a client library bundle using Google Cloud Endpoints. In order to use this API client library in your project, you need to build the library using Gradle. How to build API client library using Gradle Under the root directory of the client bundle, run "gradle install" in the command console. By running this command, this API client bundle would be build by

Generating Google Cloud endpoints for Java client

给你一囗甜甜゛ 提交于 2019-12-11 06:38:43
问题 Not much written about using Google Cloud endpoints from a Java client. There are hints that it can be done in various documents but very little written about it. I've been able to get it work but there are some questions. First question: Is there some documentation or an example about how to use Google Cloud Endpoint from a Java client? I'm using the GPE to generate an endpoints client library. The output is the creation of endpoint-libs directory with a bunch of stuff. Documentation says,

Using Google endpoints in different modules of the same app

為{幸葍}努か 提交于 2019-12-11 05:57:24
问题 I'm quite new to development with Google App engine and other Google services of the Cloud platform and I'd like to create an app with different modules (so they can have their own lifecycle) which use endpoints. I'm struggling with api paths because I don't know how to route requests to the good module. My directory tree is like that: /myApp /module1 __init__.py main.py /module2 __init__.py main.py module1.yaml module2.yaml dispatch.yaml module1.yaml application: myapp runtime: python27

Login System Using Google Cloud Endpoints

房东的猫 提交于 2019-12-11 05:49:25
问题 How can I use oauth to make a login System using google cloud Endpoints? Thanks. 回答1: Your question is a little vague, but this is a basic workflow. Usually the login system is different from the users profile. Authenticate the user using Oauth natively on the client - the authentication will return a profile id. Use that profile id to create a profile for the user on your system. 来源: https://stackoverflow.com/questions/23165549/login-system-using-google-cloud-endpoints

GAE Modules and Google Endpoints

纵然是瞬间 提交于 2019-12-11 05:29:56
问题 I'm migrating a GAE application to modules, and have issues with the routing for my api module, based on Google Endpoints. Basically, all my API queries are routed to the default module, while other routing works well My folder structure is - /gae -- dispatch.yaml -- www/ ---- www.yaml ---- [www module files] -- foo/ ---- foo.yaml ---- [foo module files] -- api/api.yaml ---- api.yaml ---- [foo module files] dispatch.yaml application: testapp dispatch: - url: "testapp.appspot.com/" module:

Getting huge Firebase access token

本秂侑毒 提交于 2019-12-11 05:25:53
问题 I'm using Firebase authentication together with Cloud Endpoints Frameworks. In context of this, I have two questions which belong together: In my Android app I'm requesting the access token after a successfully login in the following way: FirebaseUser user = mFirebaseAuthenticator.getCurrentUser(); user.getIdToken(true).addOnCompleteListener(new OnCompleteListener<GetTokenResult>() { public void onComplete(@NonNull Task<GetTokenResult> task) { if (task.isSuccessful()) { mIDToken = task

Can't get CORS working on a Google Endpoints ESP

泄露秘密 提交于 2019-12-11 04:49:50
问题 I'm running a K8s cluster, serving a gRPC service with an Enterprise Service Proxy serving both gRPC and REST over HTTPS. I'm trying to enable CORS for this endpoint, but I can't get it working. Here's my endpoint config: ... endpoints: - name: <my-service>.endpoints.<my-project>.cloud.goog target: <ENDPOINT_IP> allow_cors: true I've updated the endpoint and updated the ESP config. I've confirmed that there's a section in /etc/nginx.d/service.json or something that contains something about

Passing a path parameter to Google's Endpoint for Cloud Function

有些话、适合烂在心里 提交于 2019-12-11 04:47:46
问题 I am following Google's tutorial on setting up Google Cloud endpoint (not AWS API Gateway) in front of my Cloud Function. I am triggering my Cloud Function to trigger an AWS lambda function, AND I am trying to pass a path parameter from my Endpoint as defined by OpenAPI spec. Path parameters are variable parts of a URL path. They are typically used to point to a specific resource within a collection, such as a user identified by ID. A URL can have several path parameters, each denoted with

Android Studio appengine endpoint does not include builder

血红的双手。 提交于 2019-12-11 03:21:51
问题 In my AndroidStudio project I have two modules: app, which is the android module and api which is the app-engine module. The App-Engine module api was generated by creating an Endpoints App Engine Module in AndroidStudio. I have an Endpoint class generated from an objectify annotated class called Comment. package com.example.pontuse.api; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; /** * Created by pontuse on 2014-09-08. */ @Entity public

Authenticating to Google Cloud Endpoints as iOS app (not user with Google account credentials)

穿精又带淫゛_ 提交于 2019-12-11 02:29:32
问题 One of my iOS apps contacts one of my services using Google Cloud Endpoints and I would like to restrict access to that service to instances of the app. I've followed instructions about adding authorization and have created an iOS client ID that is tied to my app's bundle id and app store id. I've now difficulties understanding this part of the instructions: If your iOS app is making calls to an Endpoint that requires authentication, you must Add a Sign-in Dialog to your iOS client. I do not