Hiding Local Login in NAM-IDP Landing Page

In NAM - IDP - after login through the default nidp login page - we reach the nidp landing page. In this page we have on left hand side a option for Local Login - where all the registered app list are visible by default. I am looking to disable this Local Login option that is visible on the nidp landing page. I tried to search in some jsp files but could not locate it yet. 

can you please guide me how this can be achieved and which jsp file related to NAM can be modified to achieve this ?

Regards,

Kalariviswa

  • You can see the Hambuger menu at two places during the authentication:

    1. When the login page is presented to the user

    2. on the IDP Portal Page after login.

    Follow the steps to remove the Hamburger menu for the 2 cases.

    1. When the login Page is presented to the user:

    srajamanjit_0-1596218507462.png

    You need to change the file /opt/novell/nam/idp/webapps/nidp/jsp/nidp_latest.jsp to hide the hamburger menu.

    Check for the code:

    // If the client is the Mobile Application, do not show the hamburger
    // menu with the auth cards.
    String strUserAgent = request.getHeader("User-Agent");
    if ((null != strUserAgent) && (-1 != strUserAgent.indexOf("NMA_Auth")))
    {
    showCards = false;
    }

    and change it to:

    // If the client is the Mobile Application, do not show the hamburger
    // menu with the auth cards.
    String strUserAgent = request.getHeader("User-Agent");
     if ((null != strUserAgent) )
    {
    showCards = false;
    }

    After this change the hamburger IDP login page will not show the hamburger containing Local Logins.

    srajamanjit_1-1596218842108.png

     

     

     

     

     

  •  

    2. on the IDP Portal Page after login.

    srajamanjit_1-1596219182566.png

    IDP portal access always load a JS file from the folder /opt/novell/nam/idp/webapps/nidp/ospui based on the browser language setting. You need to find the JS file used for your access. You can find this by using F12 or a fiddler trace.(make sure to clear the browser cache when you want to find the name of the file)

    srajamanjit_2-1596219489907.png

     

    Open the specific file from folder /opt/novell/nam/idp/webapps/nidp/ospui .

    Check for code:

    this.com_netiq_ospui_client_panel_AuthenticationContractPanel_m_1canShow = true;

    Change to code:

    this.com_netiq_ospui_client_panel_AuthenticationContractPanel_m_1canShow = false;

    After this change IDP Portal will not show the hamburger menu for Local Login(make sure to remove the cache after this change, so that Browser will access the latest *.js file).

    noLocalLogin.PNG

    If you want to make such change for all the language, do the similar change for all the language *js file in folder /opt/novell/nam/idp/webapps/nidp/ospui.