Password Import hook on every request

We have a 2 phase migration to Okta ahead of us and in the first phase we would like to still leverage our existing user db and password management flow but be able to mint OAuth2 tokens from the Okta Authz Server. Second phase will be a traditional Password Import hook migration but during our first phase we would like the Password Import hook to fire on every auth request.

We are trying to figure out if there is a way to bend the intended Password Import flow to achieve this goal or do we need to find an alternative direction to validate an existing user / pass on an external custom user db during a OAuth2 auth_code flow.

I don’t think this is going to work. The Password Import Inline hook is meant to trigger the first time the imported user tries to login, not every time.