Open mefarazath opened 5 years ago
Anyone who came here by searching for the error message Duplicate key [Lorg.wso2.carbon.identity.application.common.model.Property
; please check whether you have multiple copies of the same authenticator with different versions in the
In the current implementation,
When authenticators are registered we do not validate whether two authenticators are registered with the same name. The impact of this is quite serious.
At runtime, we have no clue which authenticator is shown in the UI as only one of them will be displayed under the local authenticator configs.
Also when we try to update a service provider after selecting local authenticator options the below error is seen
This can be easily reproduced by having two versions of a local authenticator in the dropins folder and trying to update a service provider after selecting the local authentication option.
If we print an error during the authenticator registration, then it would be much easier to diagnose errors like above.