Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing Google Drive access in a self-hosted application #11

Open
sebdumancic opened this issue Oct 7, 2018 · 1 comment
Open

Allowing Google Drive access in a self-hosted application #11

sebdumancic opened this issue Oct 7, 2018 · 1 comment

Comments

@sebdumancic
Copy link

Hi,

First of all, I really like this project: it does reference management it the exact way I want it! Thanks a lot for making it.

I'm trying to self-host it on the AWS, but have problems with getting access to Google Drive.
Could you provide more details on how to set this up?
I added the credentials from https://console.developers.google.com/start/api?id=drive to 'googleAPI.json' but cannot make it work; I keep getting the same error:

Error: invalid_request

Invalid parameter value for redirect_uri: Raw IP addresses not allowed: http://0.0.0.0:8080/api/drive/auth

More details says:

response_type=code
redirect_uri=http://0.0.0.0:8080/api/drive/auth
client_id=[...].apps.googleusercontent.com
scope=https://www.googleapis.com/auth/drive
access_type=offline
approval_prompt=auto

I don't understand why the redirect_uri is set to http://0.0.0.0:8080/api/drive/auth.

Could you provide more details on how to set it up?

(Also, could you allow the Github connection to my account - sdumancic? Thanks!)

@MicaelCarvalho
Copy link
Member

MicaelCarvalho commented Jun 17, 2019

Sorry for the long delay on this answer...

  • git access has been granted to the user sdumancic;
  • Can you check if your googleAPI.json follows the syntax below?
    {"web":{"client_id":"[ID].apps.googleusercontent.com","project_id":"[ProjectName]","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"[SecretHere]","redirect_uris":["http://localhost:8080/drive/callback"]}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants