Create users without password with custom database connection

We have a situation where we would like to create and authenticate users without using emails as our users won’t have emails and aren’t allowed to have an email associated with their login. Is it possible to handle this with the use of a custom database connection?

Password less connection is separate from database… You can link them but you need to choose priority…

I was looking to use a username not a passwordless connection