allow importing existing users when the localpart matches in upstream OAuth 2.0 logins

This commit is contained in:
mcalinghee
2025-06-12 16:37:57 +02:00
committed by Olivier D
parent 774c8786ff
commit 1886e73e40
15 changed files with 657 additions and 26 deletions

View File

@@ -776,6 +776,12 @@ upstream_oauth2:
localpart:
#action: force
#template: "{{ user.preferred_username }}"
# How to handle when localpart already exists.
# Possible values are (default: fail):
# - `add` : Adds the upstream account link to the existing user, regardless of whether there is an existing link or not.
# - `fail` : Fails the upstream OAuth 2.0 login.
#on_conflict: fail
# The display name is the user's display name.
displayname: