Resetting Challenge Failure Counters

Integrating Native .NET Applications 3-9 AuthentiPadType padType = AuthentiPadType.TYPE_ALPHANUMERICPAD; String bgFile = proxy.getImageuser.CustomerId; String captionText = proxy.getCaptionuser.CustomerId; String frameFile = BharosaConfig.get bharosa.authentipad.alphanumeric.frame.file, alphanumpad_bgkp_v2_frame_nologo.png; AuthentiPad authPad = client.getAuthentiPadpadType, padName, frameFile, bgFile, captionText, false, true, true; save the authenticator object in sessData: it will be needed in GetImage.aspx.cs to generate the authenticator image, and while decoding the user input sessionData[padName] = authPad; }

3.4.6.2 Embedding a Virtual Authentication Device in a Web Page

To display a virtual authentication device properly, such as the one created in the previous section, both the .ASPX file and the code-behind file need to be updated. To update these files, proceed as follows: 1. Include the JavaScript bharosa_webjsbharosa_pad.js in the ASPX file. 2. Create a label in the ASPX file where the virtual authentication device is to be displayed: asp:Label ID=authenticator runat=serverasp:Label 3. Generate the HTML in the code-behind file from the virtual authentication device object and assign it to the label: this.authenticator.Text = client.getAuthentiPadHTMLauthPad,false, false;

3.4.6.3 Validating User Input with a Virtual Authentication Device

The input that a user supplies to a virtual authentication device is posted to the application in the HTTP parameter named padName + DataField. This input should be decoded using the virtual authentication device as illustrated in the following sample code: if IsPostBack { AuthentiPad authPad = sessionData[padName]; String encodedPasswd = Request.Params[padName + DataField]; String passwd = authPad.decodeInputencodedPasswd; continue to validate the password }

3.4.7 Specifying Credentials to the Oracle Adaptive Access Manager SOAP Server

The credentials to access the Oracle Adaptive Access Manager SOAP Server can be specified in one of the following ways: ■ By adding the following settings to application web.config file: appSettings add key=BharosaSOAPUser value=soapUser