Example API calls to reproduce this bug.
curl --request POST \
--url https://<ORG>.okta.com/api/v1/users \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"profile": {
"firstName": "Fisher",
"lastName": "Muhdish",
"email": "[email protected]",
"login": "fishdish"
}
}'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/users/00ubim8fggjStNwJ84x6 \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"credentials": {
"password": {
"value": "SomePassword123"
}
}
}'
curl --request POST \
--url 'https://<ORG>.okta.com/api/v1/users/00ubim8fggjStNwJ84x6/factors?activate=false' \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"factorType": "sms",
"provider": "OKTA",
"profile": {
"phoneNumber": "+18024482036"
}
}'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/users/00ubim8fggjStNwJ84x6/factors/mblbimqspvmEhZUhN4x6/lifecycle/activate \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"passCode": "421675"
}'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/authn/recovery/password \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"username": "fishdish",
"factorType": "SMS"
}'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/authn/recovery/factors/SMS/verify \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"stateToken": "00yyEPfI7XVdxM1rVGLXeN8E8B_ddV_nXmyaPCiu-L",
"passCode": "082061"
}'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/authn/credentials/reset_password \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"stateToken": "00yyEPfI7XVdxM1rVGLXeN8E8B_ddV_nXmyaPCiu-L",
"newPassword": "LastPass1234"
}'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/authn \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"username": "fishdish",
"password": "LastPass1234"
}'
curl --request DELETE \
--url https://<ORG>.okta.com/api/v1/users/00ubim8fggjStNwJ84x6/factors/smsbimrldFNdxYACR4x6 \
--header 'authorization: SSWS <TOKEN>'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/authn/recovery/password \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"username": "fishdish",
"factorType": "SMS"
}'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/authn/recovery/factors/SMS/verify \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"stateToken": "006W9WK4UaekCIQvHxjVmPyIEDbjGeZjeIfqrzwm9Q",
"passCode": "040076"
}'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/authn/credentials/reset_password \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"stateToken": "006W9WK4UaekCIQvHxjVmPyIEDbjGeZjeIfqrzwm9Q",
"newPassword": "LastPass1234567"
}'
curl --request POST \
--url https://<ORG>.okta.com/api/v1/authn \
--header 'authorization: SSWS <TOKEN>' \
--header 'content-type: application/json' \
--data '{
"username": "fishdish",
"password": "LastPass1234567"
}'