OpenAM Custom Authentication Module Service Configuration

This topic has 1 reply, 2 voices, and was last updated 3 years, 2 months ago by sakbulut.

  • Author
    Posts
  • #19996
     rasarkar
    Participant

    I am writing a custom authentication module to customize the flow of the OOTB HOTP module. I have written a service configuration file as part of that. The problem is the order of the attributes in the AM console while configuring the module does not match the order of the attributes defined in the file. Also every time I open the authentication module configuration from <Realm Name>->Authentication->Modules-><Module Name> the order is different. I am uploading the file with this question. Can anyone please help me here?

    Below is the sample file-

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE ServicesConfiguration PUBLIC “=//iPlanet//Service Management Services (SMS) 1.0 DTD//EN” “jar://com/sun/identity/sm/sms.dtd”>
    <ServicesConfiguration>
    <Service name=”sunAMAuthCustomHOTPService” version=”1.0″>
    <Schema serviceHierarchy=”/DSAMEConfig/authentication/sunAMAuthCustomHOTPService” i18nFileName=”amAuthCustomHOTP” revisionNumber=”1″ i18nKey=”sunAMAuthCustomHOTPServiceDescription” resourceName=”customhotp”>
    <Organization>
    <AttributeSchema name=”iplanet-am-auth-customhotp-auth-level” type=”single” syntax=”number_range” rangeStart=”0″ rangeEnd=”2147483647″ i18nKey=”a500″ resourceName=”authenticationLevel”>
    <DefaultValues>
    <Value>0</Value>
    </DefaultValues>
    </AttributeSchema>
    <AttributeSchema name=”sunAMAuthCustomHOTPSMSGatewayImplClassName” type=”single” syntax=”string” i18nKey=”a501″ resourceName=”smsGatewayClass”>
    <DefaultValues>
    <Value>com.sun.identity.authentication.modules.hotp.DefaultSMSGatewayImpl</Value>
    </DefaultValues>
    </AttributeSchema>
    <SubSchema name=”serverconfig” inheritance=”multiple” resourceName=”USE-PARENT”>
    <AttributeSchema name=”iplanet-am-auth-customhotp-auth-level” type=”single” syntax=”number_range” rangeStart=”0″ rangeEnd=”2147483647″ i18nKey=”a500″ resourceName=”authenticationLevel”>
    <DefaultValues>
    <Value>0</Value>
    </DefaultValues>
    </AttributeSchema>
    <AttributeSchema name=”sunAMAuthCustomHOTPSMSGatewayImplClassName” type=”single” syntax=”string” i18nKey=”a501″ resourceName=”smsGatewayClass”>
    <DefaultValues>
    <Value>com.sun.identity.authentication.modules.hotp.DefaultSMSGatewayImpl</Value>
    </DefaultValues>
    </AttributeSchema>
    </SubSchema>
    </Organization>
    </Schema>
    </Service>
    </ServicesConfiguration>

    #22626
     sakbulut
    Participant

    Hi, I have exactly the same effect but I don’t know how to fix it. I have written the same module for Version 13.5 and there weren’t a problem with the order of configuration properties. But in Version 5.5.1 I get this effect. Can anyone help please?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?