How do I get a password reset token using the .NET SDK? Skip to main content
https://support.okta.com/help/answers?id=9062a000000quplqa0&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:
Brian LeeBrian Lee 

How do I get a password reset token using the .NET SDK?

Josh SkeenJosh Skeen (Okta)
Hi Brian,

There are two types of tokens that can be obtained via the API for actions like this. The first is a "sessionToken", and that is generated by successfully authenticating against the Primary Authentication endpoint using the API. 

The second type is a stateToken, which is what would be used for password resets. If the primary authentication attempt puts you into a secondary state (such as multi-factor authentication challenge or password expired), this is when you will receive a stateToken, but no sessionToken. You can then use the stateToken to reset the password.

Thank you,

Josh Skeen
Okta Global Customer Support