How do I access Google Drive Application Data from a remote server? -
How do I access Google Drive Application Data from a remote server? -
for application want user able store files on google drive , service have access these same files created application.
i created client id web application , able upload/list/download files javascript (client side) drive.appfolder scope. good, half of want do.
now want access same files node.js (server side). lost how this. create new client id server? (if so, how user authenticate?) pass authtoken user got client-side , seek utilize on server? don't think work authtoke time-sensitive (and not intended used multiple ips).
any direction or illustration server-side code helpful. again, want access these same files user created application, not other files in user's google drive.
clarification: think question boils downwards to: "is possible access same application info on google drive both client-side , server-side?"
do create new client id server?
up you. don't need to, can. see below.
if so, how user authenticate?
up you. oauth authorisation, not authentication. in case meant authorisation, user authorises project, may contain multiple client ids.
do pass authtoken user got client-side , seek utilize on server?
you can do, not thought reason state. preferred approach have separate server client id, , utilize request offline access, returns (eventually) refresh token, store in server. utilize refresh token request access tokens whenever need them.
authtoken ... (and not intended used multiple ips).
it not bound specific ip address
is possible access same application info on google drive both client-side , server-side?"
yes
most of need @ https://developers.google.com/accounts/docs/oauth2webserver
google-oauth google-drive-sdk
Comments
Post a Comment