docspell
docspell copied to clipboard
Support per-user authentication tokens
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.
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)
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.