Skip to content

Support for refreshing access tokens for authentification of WebDAV remote #10689

@Matt1h

Description

@Matt1h

This was already discussed at:

https://discuss.dvc.org/t/updating-refreshed-oidc-token-in-config-local/2296?u=matthias

When using a WebDAV remote the token for authentication can be stored in the config.local file with

dvc remote modify --local hifis token <token>

I use oidc-agent for authentication, which creates a new refreshed access token every 5 minutes, so the token in the config.local file has to be updated every 5 minutes. It would be nice if it would be possible to define the command , for oidc-agent this would be oidc-token <config_name>, that returns the current access token, so DVC can always use this current access token and it does not have to be updated in the config.local file all the time. For example rclone is doing it like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions