User is in password expired state - exception while changing password when user has only password factor enrolled and has few other required factors to enroll. #181
Labels
bug
Something isn't working
Describe the bug?
User is enrolled for only password factor and there are few other required factors as per authenticator enrollment policy which user is not enrolled.
Now when user goes to password expired status and tries to change password using ChangePasswordAsync() method with payload
{
NewPassword = {{newPassword}}
}
Password is being updated but in return we are getting following exception instead of proper response with "AwaitingAuthenticatorEnrollment" status since user is yet to enroll few required factors
Exception : {"Unexpected remediation step: Expected '['successWithInteractionCode or select-authenticator-authenticate']' but received ['select-authenticator-enroll'].\n Verify that your policies are configured as expected."}
In same above case
OKTA OIE Browser End Point : https://oie-tecnics-dev.oktapreview.com/idp/idx/challenge/answer
OKTA OIE Browser Response : https://jsonblob.com/1039515194677805056
What is expected to happen?
Expecting response object with "AwaitingAuthenticatorEnrollment" status after password is changed/updated.
What is the actual behavior?
Getting exception instead of response object with AwaitingAuthenticatorEnrollment status
Exception : {"Unexpected remediation step: Expected '['successWithInteractionCode or select-authenticator-authenticate']' but received ['select-authenticator-enroll'].\n Verify that your policies are configured as expected."}
Reproduction Steps?
Exception : {"Unexpected remediation step: Expected '['successWithInteractionCode or select-authenticator-authenticate']' but received ['select-authenticator-enroll'].\n Verify that your policies are configured as expected."}
Additional Information?
No response
.NET Version
.NET core 3.1
SDK Version
Okta IDX Sdk 2.2.1, Okta IDX Sdk 2.2.2, Okta IDX Sdk 2.2.3
OS version
Windows 11 :
BuildNumber Caption OSArchitecture Version
22000 Microsoft Windows 11 Pro 64-bit 10.0.22000
Windows 10 :
BuildNumber Caption OSArchitecture Version
19044 Microsoft Windows 10 Pro 64-bit 10.0.19044
The text was updated successfully, but these errors were encountered: