mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
Allow to authenticate with the same account from different sources
A new config allows to treat an account same independent where it was created (openid or local). Issue: #1827 #1781
This commit is contained in:
@ -95,6 +95,17 @@ docspell.server {
|
||||
# How long the remember me cookie/token is valid.
|
||||
valid = "30 days"
|
||||
}
|
||||
|
||||
# One of: fail, convert
|
||||
#
|
||||
# Accounts can be local or defined at a remote provider and
|
||||
# integrated via OIDC. If the same account is defined in both
|
||||
# sources, docspell by default fails if a user mixes logins (e.g.
|
||||
# when registering a user locally and then logging in with the
|
||||
# same user via OIDC). When set to `convert` docspell treats it as
|
||||
# being the same and simply updates the account to reflect the new
|
||||
# account source.
|
||||
on-account-source-conflict = "fail"
|
||||
}
|
||||
|
||||
# Settings for "download as zip"
|
||||
|
Reference in New Issue
Block a user