Monday, November 8, 2010

How to add custom fields in OIM Self Registration page

I have read this article  which talks about adding custom field (email confirmation for 2nd time) in the Self Registration page. The scenario is simple:

To add field Confirm Email for 2nd time in the Self Registration page. This behavior can been seen in many of the websites. So, what would you do when you are using OIM for this purpose? By default, OIM supports adding custom fields to custom self registration page by modifying the FormMetaData.xml file. However, the problem arises when you want to add logic to the form to have the Email confirm field match the Email field. This can be done easily (either by adding javascript or by adding custom code) if it is a custom Self Registration Page and not OIM self registration page. The workaround is so simple: Decompile the tcSelfRegistrationAction.class java file deployed in the XellerateFull.ear file and copy the function of confirming the password and change the field name to email. 

7 comments:

  1. Hi Mahi,

    I have a custom self registration page (.Net) from where I am creating a user in OID, everything is working fine but I am not able to store the challenge question and password. Is there any API or something that can be used to encrypt this data and then store?

    Thanks,
    Hemu

    ReplyDelete
  2. Hi Hem,

    Please tell me whether you want to throw challenge questions from OIM or OAM? I understand that users will be stored in OID, but the interface you are using for it is OIM or OAM? If you are using OAM, it is doubtful whether you can encrypt challenge questions of it. It is possible if you are using OIM.

    The following default challenge questions are localized automatically in Oracle Identity Manager:
    What is the name of your pet?
    What is the city of your birth?
    What is your favorite color?
    What is your mother's maiden name?

    Please check out this link for more details.

    http://download.oracle.com/docs/cd/B32386_01/generic.902/b32149/componts.htm

    -Mahendra.

    ReplyDelete
  3. I am throwing question answer from .NET application but I have sync them with what we have in password policy (OAM). Is there any API that oracle provide to encrypt them to store in OID? like oracle is doing when we create from OAM interface(Create User Identity).

    Thanks,
    Hem

    ReplyDelete
  4. Hi Mahi,
    There is an OAM Identity XML, through which I can also update the OID database. But I am not able to create .net proxy to communicate with OAM. Could you please provide me any reference, how can I do this?

    Thanks,
    Hem

    ReplyDelete
  5. do you know the encryption details oracle is using to encrypt the challenge response? Like AES, bits etc

    ReplyDelete
  6. Hi Hem,

    The encryption details are not exposed to outside world as this leads to security issues.

    You can use wsdl files to create a webservice and call Identity XML using that.

    Hope this helps.

    -Mahendra.

    ReplyDelete
  7. I'm trying to create user in OIM11g using SPML addRequest. The user gets created however, custom attribute values do not get populated. I tried using the same name as defined in OIM, used USR_UDF_attribute name. Where can I map the SPML attribute name to the OIM attribute name for custom fields on user form?

    ReplyDelete