link Or Create User
context(_: JdbcTransaction, _: Raise<Issue>)
fun linkOrCreateUser(provider: String, providerUserId: String, preferredUsername: String, email: String, currentPrincipal: Principal? = null): UserEntity
fun linkOrCreateUser(provider: String, providerUserId: String, preferredUsername: String, email: String, currentPrincipal: Principal? = null): UserEntity
Links a new OAuth account to an existing user or creates a new user.
Return
The UserEntity for the user.
Parameters
provider
The name of the OAuth provider.
provider User Id
The unique ID from the provider.
preferred Username
The username the user wants to use.
email
The email address of the user.
current Principal
The currently authenticated principal, if any.