# Password Import hook on every request

**URL:** <https://devforum.okta.com/t/password-import-hook-on-every-request/23011>\
**Category:** Questions\
**Created:** [January 10, 2023, 9:54pm UTC](https://devforum.okta.com/t/password-import-hook-on-every-request/23011 "2023-01-10T21:54:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![camte](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@camte](https://devforum.okta.com/u/camte)\
**Post date:** [January 10, 2023, 9:54pm UTC](https://devforum.okta.com/t/password-import-hook-on-every-request/23011/1 "2023-01-10T21:54:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 20, 2023, 7:57pm UTC](https://devforum.okta.com/t/password-import-hook-on-every-request/23011/2 "2023-01-20T19:57:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 12, 2024, 11:08pm UTC](https://devforum.okta.com/t/password-import-hook-on-every-request/23011/3 "2024-02-12T23:08:07Z")

</div>

Closed on February 12, 2024, 11:08pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
