docspell icon indicating copy to clipboard operation
docspell copied to clipboard

Support per-user authentication tokens

Open vs49688 opened this issue 2 years ago • 2 comments

Feature request:

Add support for per-user authentication tokens. They'd be similar to GitHub's "Personal Access Tokens", to allow using protected endpoints without having to do the whole login/2fa flow.

Context: I'm writing a tool that interacts with Docspell, and I really don't want to enter my 2fa code each time I use it.

vs49688 avatar Sep 01 '22 12:09 vs49688

An alternative for now could be to use a different user with a stronger password for your scripts (that has no 2fa). Also, the dsc client refreshes the token - it could maybe be convenient to use it (should it support what you need ofc)

eikek avatar Sep 03 '22 12:09 eikek

An alternative for now could be to use a different user with a stronger password for your scripts (that has no 2fa).

Indeed, I didn't consider that...

Also, the dsc client refreshes the token - it could maybe be convenient to use it (should it support what you need ofc)

It doesn't unfortunately, the tool I'm writing is for a very niche (i.e. only my) use case.

vs49688 avatar Sep 04 '22 15:09 vs49688