wso2 / product-is

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
746 stars 724 forks source link

UnsupportedOperationException during user login using SMSAuthenticator #15728

Open imesh94 opened 1 year ago

imesh94 commented 1 year ago

Describe the issue: When SMSAuthenticator is configured as the second authentication step, an UnsupportedOperationException is thrown after the first authentication step.

This is due to trying to modify an immutable object in DefaultRequestCoordinator.

https://github.com/wso2-support/carbon-identity-framework/blob/support-5.23.8.x-full/components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/handler/request/impl/DefaultRequestCoordinator.java#L267

https://github.com/wso2-support/carbon-identity-framework/blob/support-5.23.8.x-full/components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/AbstractApplicationAuthenticator.java#L373

How to reproduce:

Expected behavior:

Environment information (Please complete the following information; remove any unnecessary fields) :


Optional Fields

Related issues:

Suggested labels:

imesh94 commented 1 year ago

Reopening to fix for IS 6.1.0