We needed to host the authentication endpoint externally rather than the default way of having the authentication endpoint hosted with the WSO2 Identity…