google-cloud-endpoints

Resolve Discovery path on App Engine Module

混江龙づ霸主 提交于 2019-11-27 08:33:58
问题 I want to build a client for my cloud endpoints in python like described in the Documentation. I want to build the api from a Managed VM, so i get the path to the API by calling modules.get_hostname(module="default") This works fine for the devserver and i can create the complete path to the discovery endpoint, however on the live system this returns the url to a certain version like: 20150628t110011.default.guestbook.appspot.com Thus the complete path to the API (default module) would be

How do I secure my Google Cloud Endpoints APIs with Firebase token verification?

北城以北 提交于 2019-11-27 07:43:00
问题 My setup: Java backend hosted on Google App Engine containing APIs that were created using Google Cloud Endpoints Mobile client applications containing generated client libraries for the endpoints mentioned above. Also integrated with Firebase for authentication and the database. My intention is that a user of the mobile client applications will be able to log in to the mobile app using Firebase authentication, then connect to any of the backend APIs, which in turn will do some processing and

GAE cloud endpoints - Api not updating after deploy

女生的网名这么多〃 提交于 2019-11-27 06:50:29
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.list(); If I changed the call from foo/list to foo/list2, the rest url would update, the api package would

GoogleAccountCredential name is null despite calling setSelectedAccountName (Android 6.0)

孤人 提交于 2019-11-27 06:46:50
问题 I've created an endpoint using a secured backend and have been using it since March on an app I'm building (source docs here). I recently installed the latest version to my Android 6.0 device and an odd error popped up (it works perfectly on 4.2.2 & 5.1). The specific error is: IllegalArgumentException: the name must not be empty: null Which I traced to an error with the credential, you can see the code below. On Android 6.0 account may be "user@gmail.com" but the string 'test' turns out to

Cloud endpoints oauth2 error

亡梦爱人 提交于 2019-11-27 06:28:18
问题 I just recently was able to refactor my app engine application to support Cloud Endpoints after watching the IMO helpful GDL episodes on YouTube. I'm testing my site using the javascript client to handle authorization and then return a list of items which mostly works. But when I'm calling the endpoint to return the list of items I get this set of errors in my App Engine logs: I 2013-03-14 08:52:14.748 Checking for id_token. W 2013-03-14 08:52:14.748 id_token verification failed: Wrong number

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

百般思念 提交于 2019-11-27 04:23:11
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. Add an HttpServletRequest parameter to your endpoint method, e.g. @ApiMethod public MyResponse getResponse( HttpServletRequest req, @Named("infoId") String infoId ) { // Use 'req' as you would in a servlet, e.g.

Error generating google cloud endpoint client libraries

回眸只為那壹抹淺笑 提交于 2019-11-27 01:39:50
问题 During last weeks I've been developing an app using GAE/J and Google Cloud Endpoints . I created my custom endpoints (using annotations) and although I had quite a lot of problems, I could solve them and everything was working rather fine. But now (22/04/2013) I tried to make changes in an endpoint method, and suddenly the Google Eclipse Plugin is not generating the client libraries anymore! I tried to delete all the generated api files from my project, but nothing worked. I've even

Angular Js and google api client.js (gapi)

拟墨画扇 提交于 2019-11-27 00:27:55
It took me one day to make it works so I think my experience may be useful from someone. And maybe some others will find improvement. So I start angularJS two days ago. And I want it works with Google Cloud Endpoints to create a backend interface. Here comes the trouble for me. The javascript client for gapi comes with asynchronous loading, so angular initialization will crash having gapi undefined. So you need to bootstrap angular when gapi is initialized: remove ng-app="myApp" Add <script src="https://apis.google.com/js/client.js?onload=googleOnLoadCallback"></script> Add the callback:

Google Endpoints API + Chrome Extension returns None for endpoints.get_current_user().user_id()

自作多情 提交于 2019-11-27 00:24:02
问题 I am developing Google App Engine application written in Python and using Endpoints API. In conjunction, I am writing a Chrome Extension to interact with the Endpoints API. I've been running into lots of issues with the Endpoints API and authorization. Currently, here is my setup: Endpoints API (Python) from google.appengine.ext import endpoints from protorpc import message_types from protorpc import remote ALLOWED_CLIENT_IDS = ['client_id_from_google_api_console', endpoints.API_EXPLORER

Simple Access API (Developer Key) with Google Cloud Endpoint (Python)

不问归期 提交于 2019-11-26 23:10:49
问题 Is there a way to use Simple Access API (Developer Key) instead of oAuth2 key with Google Cloud Endpoint? 回答1: Extra fields in your protorpc request object that aren't part of the definition are still stored with the request. If you wanted to use a key field as a query parameter, you could access it via request.get_unrecognized_field_info('key') even if key is not a field in your message definition. This is done in users_id_token.py (the Auth part of the endpoints library) to allow sending