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

Integration Request: Baidu Disk Auth OAuth Support for Duplicati #1

Open
trueai-org opened this issue Mar 8, 2024 · 3 comments
Open

Comments

@trueai-org
Copy link

Hi @kenkendk: about duplicati/duplicati#5072 (comment)

After thoroughly examining the current OAuth handling mechanism on the Duplicati community forums and delving into related discussions, particularly about dealing with OAuth service transitions and issues encountered with multiple storage providers, I have come to realize the significant convenience that adding OAuth support for more storage providers would bring to users. Specifically, I am interested in how Baidu Cloud's OAuth authentication can be integrated into Duplicati's existing OAuth authentication framework.

Therefore, I would like to inquire about any plans to deploy an OAuth server that includes support for Baidu Cloud. I am willing to participate in this process, including testing and providing necessary technical support. If feasible, I would also like to establish a test server to ensure the smooth integration of Baidu Cloud's OAuth authentication.

Thank you for considering my request, and I look forward to your response.

@trueai-org
Copy link
Author

trueai-org commented Mar 8, 2024

Following up on my previous request regarding the integration of Baidu Cloud OAuth with Duplicati, I would like to suggest deploying the OAuth server on a Hong Kong-based cloud server. This location is closer to China and might offer improved accessibility despite the Great Firewall.

Furthermore, I currently have access to a server in Hong Kong, which I am willing to provide free of charge for development and testing purposes. This could facilitate the integration process and potentially improve the service for users in the region.

I look forward to your thoughts on this proposal.

Test IP: api.duplicati.net, 43.129.20.214
DEBUG Test screenshot:
image

@kenkendk
Copy link
Member

@trueai-org I plan to progress with the C# version of the OAuth server: https://github.com/duplicati/oauth-server
See also some OAuth discussions on the forum.

The current blocker is the migration plan, which I have not progressed further on.

If you can obtain the Baidu url and scope values, it just needs to be added here:
https://github.com/duplicati/oauth-server/blob/main/ConfigurationLoader.Defaults.cs

If you can obtain these values, it should be easy to deploy a Docker instance; let me know if you need assistance or want me to host it.

There is currently not really multi-provider support for OAuth in Duplicati, but you can set the --oauth-url either globally on on the individual backups. I think your proposal is to have an OAuth server hosted in a Chinese datacenter, which means we should (eventually) support multiple providers.

@trueai-org
Copy link
Author

Thank you for the notification; I have received the message. I will start immediately and aim to complete the task as soon as possible.

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