google-cloud-endpoints

deployed appengine cloud endpoints 403

一世执手 提交于 2019-12-23 13:32:55
问题 My deployed site cant reference endpoints. It works perfectly locally but remotely I get a 403 in the client: GET http://mailmanagerplus.appspot.com/_ah/api/discovery/v1/apis/agreement/v1/rpc?fields=methods%2F*%2Fid&pp=0 403 (Forbidden) rs=AItRSTOc4KBtnc5SIOEaPiMWPOclVYHqsA:153 All seems to have deployed successfully looking at the logs. I currently don't use any authentication. Any direction would be useful as I'm very new to this. 回答1: you have to switch to "https" protocol if you want to

Google API explorer redirects to https://apis-explorer.appspot.com/apis-explorer/#p/

元气小坏坏 提交于 2019-12-23 13:15:15
问题 Note: I have googled, and read these issues: Cannot access API explorer on localhost How to force loading dynamic, insecure content in Chrome? and many others but they do not solve my problem. The problem: I'm running MacOS and doing my development int Debian VM running in Paralells. I start up the dev server using the following command: dev_appserver.py --clear_datastore --host 0.0.0.0 --admin_host 0.0.0.0 app and I can access the app, endpoints, admin module etc from MacOS using my Debian

Using google cloud endpoints on AppEngine

↘锁芯ラ 提交于 2019-12-23 10:52:03
问题 I normally use Google Cloud Endpoints on the AppEngine (Java) , as described in : https://cloud.google.com/appengine/docs/java/endpoints/helloendpoints-java-maven The dependency for the endpoints library I use is : <plugin> <groupId>com.google.appengine</groupId> <artifactId>appengine-endpoints</artifactId> <version>1.9.48</version> </plugin> Using this, I can start a local development server using the command: mvn clean package appengine:devserver However, there seems to be a new version of

Google Cloud documentation misleading

不想你离开。 提交于 2019-12-23 04:57:17
问题 On this link, under "Deploying, Downloading, and Running the Sample", point 6, it is stated this: "In the upper left, locate the two small dots under the sample app icon, and click the second dot to switch to the Mobile Backend sample". Following the steps so far, there is no "upper left two small dots" or "sample app icon".. Is the documentation obsolete with some changes that are being done on the Cloud Console or am I missing something here.. also there is no [easy] way to delete Projects,

How to “POST” ndb.StructuredProperty?

北慕城南 提交于 2019-12-23 04:29:56
问题 Problem: I have following EndpointsModels , class Role(EndpointsModel): label = ndb.StringProperty() level = ndb.IntegerProperty() class Application(EndpointsModel): created = ndb.DateTimeProperty(auto_now_add=True) name = ndb.StringProperty() roles = ndb.StructuredProperty(Role, repeated=True) and an API method: class ApplicationApi(protorpc.remote.Service): @Application.method(http_method="POST", request_fields=('name', 'roles'), name="create", path="applications") def ApplicationAdd(self,

Google Cloud Endpoints doesn't know about the Work class from Objectify 4 Transaction, causing ClassNotFoundException

时光总嘲笑我的痴心妄想 提交于 2019-12-23 02:59:13
问题 I created a very simple Objectify/Endpoints class. import static mypackage.OfyService.ofy; import com.google.api.server.spi.config.Api; import com.google.api.server.spi.config.ApiMethod; import com.googlecode.objectify.Work; @Api(name = "testapi", version = "1") public class TestEndpoint { @ApiMethod(name = "test.insert") public TestEntity insert(final TestEntity test) { test.setName("test"); return ofy().transact(new Work<TestEntity>() { public TestEntity run() { ofy().save().entities(test)

Google Plus SDK not refreshing token (iOS)

余生颓废 提交于 2019-12-23 02:28:47
问题 Using Google Plus SDK for sign-in. Everything works great at first, but appears that the oauth token is expiring after about 1 hour. I am following the recommendations on Google's site and using [signIn trySilentAuthentication] in viewDidAppear function. I know the token is expired because I am using Oauth on my server and getting a 401 response. Also worth noting that this is not a problem if the iPhone/iPad is left plugged in with the screen on. In this case the app works indefinitely

How to do authentication check in Python library from Google Cloud Endpoints on GAE standard

一个人想着一个人 提交于 2019-12-23 02:13:43
问题 I'm trying to implement service-to-service authentication to Google Cloud Endpoints API using Google Service account, but get the following error. Cannot decode and verify the auth token. The backend will not be able to retrieve user info (.../lib/endpoints_management/control/wsgi.py:596) Traceback (most recent call last): File ".../lib/endpoints_management/control/wsgi.py", line 593, in __call__ service_name) File ".../lib/endpoints_management/auth/tokens.py", line 81, in authenticate error)

Google Cloud Endpoints custom authentication with App Engine Flexible (Node.js)

你说的曾经没有我的故事 提交于 2019-12-22 17:16:12
问题 The Google Cloud Endpoints documentation provides this specification for a custom security definition in the Extensible Service Proxy configuration file: securityDefinitions: your_custom_auth_id: authorizationUrl: "" flow: "implicit" type: "oauth2" # The value below should be unique x-google-issuer: "issuer of the token" x-google-jwks_uri: "url to the public key" # Optional. Replace YOUR-CLIENT-ID with your client ID x-google-audiences: "YOUR-CLIENT-ID" The documentation on how to implement

Error connecting android app to Google Cloud Endpoints: could not find class

不想你离开。 提交于 2019-12-22 11:35:12
问题 I have built an API with Google Cloud Endpoints and I am trying to connect to it writing an Android application. I followed the following tutorial: https://developers.google.com/appengine/docs/java/endpoints/consume_android So, I added the content of the jar on my "src" folder, I copied the listed libraries to lib and I added the code. When I tried to start the application, it crashed with the following error: 02-26 12:19:52.874: E/dalvikvm(17558): Could not find class 'com.google.api