No Need to Re-invent the OIM Wheel

Recently for an Oracle Identity Manager project, I was given what most would consider a “simple” requirement. The requirement was to add a field to the out of the box OIM Self Registration Form. The field was to be used to confirm the users email address entered, similar to how currently there is a password confirm field on the form which forces the user to enter their password twice to mitigate typos. Oracle’s documentation is pretty straight forward for modifying the OOTB Registration form. If you want to add a field, just edit the FormMetaData.xml file. Simple enough, but the problem comes in when you want to add logic to the form to have the Email confirm field match the Email field.***NOTE: As with all Tips and Tricks we provide on the IDMWorks blog, use the following AT YOUR OWN RISK.  We do not guarantee this will work in your environment and make no warranties***

Recently for an Oracle Identity Manager project, I was given what most would consider a “simple” requirement. The requirement was to add a field to the out of the box OIM Self Registration Form. The field was to be used to confirm the users email address entered, similar to how currently there is a password confirm field on the form which forces the user to enter their password twice to mitigate typos. Oracle’s documentation is pretty straight forward for modifying the OOTB Registration form. If you want to add a field, just edit the FormMetaData.xml file. Simple enough, but the problem comes in when you want to add logic to the form to have the Email confirm field match the Email field.

To solve that dilemma most people would create their own custom Self Registration form and then update the link off of the Login Page to point to their new page. But why re-invent the wheel? You only want to add one additional functional to the Self Registration form. So instead of going the time consuming complete customization route, I instead decided to de-compile the tcSelfRegistrationAction.class, which handles all the functionality for the Self Registration page. After de-compiling the class file using jd-gui, I simply copied the logic already in the code for the Password Confirm field and applied it to the Email Confirm field. Then it was as simple as compiling the updated java file and replacing the current tcSelfRegistrationAction.class in the deployed XellerateFull.ear file.

Questions? Feel free to reach out to us at IDMWorks.