product-is icon indicating copy to clipboard operation
product-is copied to clipboard

Doc Feedback: Event Publisher Mapping Conflict

Open Thumimku opened this issue 4 years ago • 0 comments

Location : https://is.docs.wso2.com/en/latest/develop/enable-mobile-verification-for-an-updated-mobile-number/

In the forth step of Step 1 https://is.docs.wso2.com/en/latest/develop/enable-mobile-verification-for-an-updated-mobile-number/#step-01-configuring-mobile-claim-verification-on-update

<mapping customMapping="enable" type="json">
        <inline>{"api_key"="4c9374",
            "api_secret"="FtqyPggE93",
            "from"="NEXMO",
            "to"={{mobile}},
            "text"={{body}}
            }</inline>
    </mapping>

Custom mapping to is binded to {{mobile}}, but in the code [1] it bounded to {{send-to}}.

[1] - https://github.com/wso2-extensions/identity-governance/blob/master/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/handler/MobileNumberVerificationHandler.java#L179

Earlier Configuration result -

[2020-11-04 14:13:35,015] [f66af656-23f5-4eba-a931-0e1328db494b]  INFO {EVENT_TRACE_LOGGER} - TenantId : -1234, Event Publisher : HTTPOutputEventAdapter, after processing 
{"api_key"="111111",
            "api_secret"="111111",
            "from"="NEXMO",
            "to"=null,
            "text"="Your Mobile Number Verification Code : M5EK2J"
            }

Thumimku avatar Nov 04 '20 09:11 Thumimku