<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007C55QICAZOkta Identity EngineWorkflowsAnswered2024-04-16T13:14:54.000Z2021-09-21T18:00:35.000Z2021-09-22T18:54:00.000Z

hx42k (hx42k) asked a question.

Password Verification

We are implementing the Change Password process in our external application through the Change Password (https://developer.okta.com/docs/reference/api/users/*change-password) endpoint from the Users API.

 

The API works as expected, but I want to know if there is a way to verify the new user password against the Password Policies on the fly (when the user is entering the new password in the input of my application). Instead of making the API call and waiting for Okta's response.

 

  1. Does Okta have any component in JS to verify passwords against password policies?
  2. Is there an API that can be used to verify passwords against password policies?

 

Additional information:

  • Our users do not have the security question set, therefore we can just use the API call (mentioned above) to change the password without taking the user out (to the Okta UI) of our application.

  • TimL.58332 (Workflows)

    Hi, This isn't the correct forum category for your question as this one is specifically for Okta Workflows product. I'll try to answer based off the information I see available.

     

    For question #1 I don't know the answer as I am not familiar with the SDK or how extensive it is. If the SDK has the ability to make queries (similar to my answer for #2 then maybe).

     

    For question #2 you can query / retrieve your configured password policies from the policy endpoint. (/api/v1/policies?type=PASSWORD). With the data retrieved it would be possible to construct constraints for a pre-check prior to submitting the POST for the password change.

    Expand Post
    Selected as Best
  • TimL.58332 (Workflows)

    Hi, This isn't the correct forum category for your question as this one is specifically for Okta Workflows product. I'll try to answer based off the information I see available.

     

    For question #1 I don't know the answer as I am not familiar with the SDK or how extensive it is. If the SDK has the ability to make queries (similar to my answer for #2 then maybe).

     

    For question #2 you can query / retrieve your configured password policies from the policy endpoint. (/api/v1/policies?type=PASSWORD). With the data retrieved it would be possible to construct constraints for a pre-check prior to submitting the POST for the password change.

    Expand Post
    Selected as Best
  • hx42k (hx42k)

    Hi Tim,

     

    Thank you for you response. Sorry about the wrong category, I d not know what category it belongs to.

     

    Regarding answer #2, that means there is no service that provides that feature by default, right?

     

    Thank you

    Expand Post
    • TimL.58332 (Workflows)

      Correct, the only native schema check would be after the POST is submitted and the body is then validated against the existing policy(s) in Okta. If you wanted a pre-check it would have to be implemented in your custom app prior to the POST action.

      • hx42k (hx42k)

        I will do it that way.

        Thank you Tim.

This question is closed.
Loading
Password Verification