It might be interesting to support the creation of Gitea users based on the Trac session_attribute table which contains their username and email address.
Ideally, the creation should only be tried if the user is not yet existing, or not mapped to an existing one.