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

[Documentation] Request: Document self-hosting with Google App Engine #1

Open
techbudfl opened this issue Feb 18, 2017 · 5 comments
Open

Comments

@techbudfl
Copy link

techbudfl commented Feb 18, 2017

Would be useful to document procedures required if a duplicati user wants to self-host the oauth-handler.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@kenkendk
Copy link
Member

You need to do a few steps:

  1. Change the app name:
    https://github.com/duplicati/oauth-handler/blob/master/app.yaml#L1
    (Newer versions of the GAE SDK requires that you supply it on the commandline, and not in the file).

  2. Copy config-template.txt to config.txt:
    https://github.com/duplicati/oauth-handler/blob/master/config-template.py

  3. In the new config.txt, register for each service you want to support and obtain the secret values (make sure you do NOT edit config-template.txt:
    https://github.com/duplicati/oauth-handler/blob/master/config-template.py#L50

  4. Upload to GAE

@A-Frantyk
Copy link

I tried to do everything that was described above, but got this error when trying do connect for example to Google Drive:
1.
image
2. When pressing on this button I'm getting this error:
image

What I did wrong? I registered the app and added Client id and secret but still have this error?

@kenkendk
Copy link
Member

You need to change the redirect url on the Google OAuth setup page to point to https://<service>.appspot.com/logged-in

More details:
https://developers.google.com/actions/identity/oauth2-code-flow

@tachang
Copy link

tachang commented Mar 3, 2021

@kenkendk
Copy link
Member

@tachang sorry for the late reply, but the answer is that you simply need to tell Duplicati to use another url with the commandline/advanced option --oauth-url=https://.../refresh

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

4 participants