-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Investigate WebDAV authentication with OAuth2 token #7
Comments
Our current fuse/webdav lib is davfs2. There's a thread in the davfs2 bugzilla, in which the lib author said he would not implement OAuth tokens. However, he gave suggestions for a workaround:
We could probably try it (although the asking person from that thread seems to be failing with this workaround). However, an open issue remains that there is probably no way to replace the token value on the fly. Remounting is rather not an option. Other options are trying some alternative libraries, e.g. webdavfs. CC @diocas |
Yes, the real issue is the fact that we cannot update the token. We could try the workaround (but then how does it work if he does We can also try alternatives, but didn't you discard others because of their performance? |
The workaround works fine. I tested it with Nextcloud and documented in #8. The missing part is extending the davfs2 library. I forked it into https://github.com/sciencemesh/davfs2 and start specifying requirements for that extension here. |
Currently, the fuse image assumes that WebDAV authentication is done with username and password. We want to investigate authenticating with OAuth2 token instead.
Moreover, as the token may expire, it should be passed to the container via a file, not an env var, so the container could reread it periodically.
Is it what we mean, @diocas?
The text was updated successfully, but these errors were encountered: