Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
608 views

Formfill with Auto submit option get looping

Hi,
We are configuring an application for SSO with formfill method (AM 4.4) where there is not any additional script or function. only password which is encrypted using CryptoJS library with HMACSHA256 Encryption and a Secret passphrase in the request.

After configuration , without Auto submit on, AM redirect the user to application login page with username and password . If clicking submit button, get the home page of application. But if Auto submit option is on the request / page is looping.

Can anyone help in this regards?
0 Likes
3 Replies
Knowledge Partner Knowledge Partner
Knowledge Partner

On 04-06-2019 9:24 PM, prasenjitmass wrote:
>
> Hi,
> We are configuring an application for SSO with formfill method (AM 4.4)
> where there is not any additional script or function. only password
> which is encrypted using *CryptoJS library with HMACSHA256 Encryption*
> and a *Secret passphrase* in the request.
>
> After configuration , without Auto submit on, AM redirect the user to
> application login page with username and password . If clicking submit
> button, get the home page of application. But if Auto submit option is
> on the request / page is looping.
>
> Can anyone help in this regards?
>
>


So is NAM sending the right (encrypted) password? It doesn't sound like it. Are you sure there are no additional functions executed when the form is
submitted?

--
Cheers,
Edward
0 Likes
Commodore
Commodore

edmaa;2500546 wrote:
On 04-06-2019 9:24 PM, prasenjitmass wrote:
>
> Hi,
> We are configuring an application for SSO with formfill method (AM 4.4)
> where there is not any additional script or function. only password
> which is encrypted using *CryptoJS library with HMACSHA256 Encryption*
> and a *Secret passphrase* in the request.
>
> After configuration , without Auto submit on, AM redirect the user to
> application login page with username and password . If clicking submit
> button, get the home page of application. But if Auto submit option is
> on the request / page is looping.
>
> Can anyone help in this regards?
>
>


So is NAM sending the right (encrypted) password? It doesn't sound like it. Are you sure there are no additional functions executed when the form is
submitted?

--
Cheers,
Edward


Probably multiple "Submit" buttons. Enable debug mode to check.
0 Likes
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Assuming there is no issue with username and generated password - 

1. When Auto-Submit is on, what Access Gateway does is submit the populated form using javascript statement document.<form id/number>.submit()

The most likely what is happening is with the above statement, login is failing and server redirects to same login form.

You can try the following - 

1. Enable "Detect Loop" to stop looping

2. Add global advance option NAGGlobalOptions InPlaceSilent=on. Use "Enable JavaScript Handling" optionwrite your own javascript statement to click the submit/login button. e.g. document.getElementById("button-id").click()

 

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.