Saturday, July 20, 2019

Acumatica SSO. Hiding login options from a login page. ADFS case.

Hi Everyone,

When implementing Single Sign On in Acumatica, sooner or later you may wish to remove Normal User / Password from the login screen.

Login page that had User/Password fields also Sign In button:


What I really wanted is to leave Company Choice and Blue Pyramid only:


Well, thanks to Acumatica RnD Team, we do not have such option under Acumatica UI yet...

So, have to become a little bit a "web designer" and, get to the IIS server, find Acumatica folder, where your site is installed and do a little modding on the Login.aspx

Normally this is C:\Program Files (x86)\Acumatica ERP\"YourInstanceName"\

There find the folder Frames, and inside will be Login.aspx file.
Make a copy of it :) just in case...

Now let's modify this file to hide what we don't want to show the ordinary user:

Add Visible = "false" here:

<asp:TextBox runat="server" ID="txtUser" CssClass="login_user border-box" placeholder="My Username" Visible="false" />

And here:

<asp:TextBox runat="server" ID="txtPass" Width="100%" CssClass="login_pass border-box" TextMode="Password" placeholder="My Password" Visible="false" />

And here:

<asp:Button runat="server" ID="btnLogin" Text="Sign In" OnClick="btnLogin_Click" CssClass="login_button" OnClientClick="login_Click()" Visible="false" />

Save, Restart, Enjoy.

Best,
Sergey.