change_password with statetoken but it always null Skip to main content
https://support.okta.com/help/answers?id=9062a000000qukoqas&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Will SongWill Song 

change_password with statetoken but it always null

Hi,

I'm trying to change the pasword using the developer API. One of the parameter is  the stateToken. After i authenticate the user and trying to get the stateToken from it but there is no value.

User-added image

Can you please advise how to get the value?

Thanks,
Will
Radu GalanRadu Galan (Okta, Inc.)

Hi Will
Please take a look at the diagram and info here:
http://developer.okta.com/docs/api/resources/authn.html#transaction-state
Since it's an "authn" API, every process starts with Primary Authentication /authn, which is here:
http://developer.okta.com/docs/api/resources/authn.html#authentication-operations
The diagram goes from state to state, and that's tracked via stateToken.

To change a user's password without using /authn and states, check these out:
http://developer.okta.com/docs/api/resources/users.html#user-operations
http://developer.okta.com/docs/api/resources/users.html#credential-operations
http://developer.okta.com/docs/api/resources/users.html#lifecycle-operations