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
731 stars 713 forks source link

Inconsistency in the response payload authenticators in API based authentication #17822

Open ayshsandu opened 8 months ago

ayshsandu commented 8 months ago

Describe the issue: Consider when the authentication step has username/password and email OTP as login options. In the init call response

Screenshot 2023-11-17 at 11 10 40 AM

How to reproduce:

  1. Setup an app with sign-in options username/password and email OTP as 1st step
  2. Try API based auth

Expected behavior: Payloads should be consistent.

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


Optional Fields

Related issues:

Suggested labels:

DMHP commented 7 months ago

https://github.com/wso2-extensions/identity-local-auth-emailotp/pull/24

DMHP commented 7 months ago

Added the i18n key as the metadata. But with the current architecture of the framework we can not send input meta-da of all the authenticators other than the basic and identifier-first when using MFA. That information should captured in the documentations. @janakamarasena Please consider this when writing the documentations.

janakamarasena commented 7 months ago

Lowering the severity as this is a limitation of the current framework as mentioned in https://github.com/wso2/product-is/issues/17822#issuecomment-1842026598