Bypass the account creation modal when using OAuth2

I modified discourse-oauth2-plugin to create the user account in the after_authenticate hook but the modal still pops and the suggested username is a variation of the OAuth2 username (because, eh, it’s already taken at this point).

I’m not familiar enough with Discourse (and Rails) to dig this, so if anyone could tell me if there is an “easy” way to dismiss this modal, other than forking discourse/discourse if possible…

SSO would make me implement another auth endpoint on my OAuth2 server and I’d prefer not to, to keep consistency with the other apps using OAuth2 in the stack.