-
Notifications
You must be signed in to change notification settings - Fork 478
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
Proposal: "Headless" mode of the AliyunDrive implementation #4733
Comments
Seems we can add |
I agree with you. I overlooked the client side and prefer to delegate the token generation part to the lib. However, it's crucial to keep the secret confidential for client apps. IMO, all we need is an extra |
thanks for your inputs! Do you prefer me or yourself to do this? @yuchanns |
I plan to submit a PR tomorrow UTC+8. I'm considering refactoring the Writer part of AliyunDrive to fully support the rapid upload, and then I will hitch a ride to add it. |
Awesome! Thank you so much! |
Bravo! Our integration tests failed for #4657, maybe you also want to take a look 🙏 |
While the implementation of Aliyun Drive works end to end. It is different from client-only / non-server workflows, where there's no `refresh_token' provided.
And client-only solution should NOT contain the "client_secret" for security reasons.
Thus, we might need a "headless" mode where the access token is not relying on the refresh token.
Before the actual code changes, I'd like to propose the potential modifications, i.e. the "headless" mode:
We might want a different name rather than the headless mode.
In
pub async fn get_token_and_drive(&self) -> Result<(Option<String>, String)>
, we can check if it is the headless mode. If it is, we just use this configuration rather than requesting new access tokensopendal/core/src/services/aliyun_drive/core.rs
Line 122 in c82dc13
Background: #4585 (comment)
The text was updated successfully, but these errors were encountered: