Coder Social home page Coder Social logo

gdoc-access-app's People

Contributors

chetana0707 avatar neelamc avatar ritalui avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

csuich2

gdoc-access-app's Issues

status = 200 when file not found

Using Google Drive API's drive.files.list call with parameter 'q' to search for a file by name, when the file is not found, Google API returns status value 200 which means success. Thus, the success code path was executed and it eventually raised Rails error.

Using Google's API explorer for testing, https://developers.google.com/apis-explorer/#s/drive/v2/drive.files.list, the API call should return status value 400.

Currently, Gemfile.lock shows google-api-client 0.4.3 is loaded for the app. We changed the Gemfile to force google-api-client 0.4.4 to be loaded. (0.4.4 is the lastest.) Same problem exists with 0.4.4 api client.

Investigation is required.

add support to submit files hosted by multiple providers during same session

Currently, a user can be authenticated by Google multiple times using multiple credentials (associated with multiple Google accounts). Table provider_auths supports this functionality. Each authentication results in an entry in the table, asociated with user_id, provider_id and uid (provider's user id). As a result, if a user has two Google accounts and is authenticated by Google twice using two different credentials, there will be two authentications in the table with the same user_id and provider_id, but different uid's.

However, currently, there is no code for file submission from different Google accounts during the same login session. Code needs to be added to display provider's uids to the user during file submission, so that the user can indicate with which uid (provider account) the file to be submitted is associated.

Note: The current code uses the access_token from the first authentication entry found with matching current_user.id to formulate the API request. There is a mismatch of access_token and uid if the file to be submitted is not associated with the uid in the first authentication entry found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.