IBM Security Verify

 View Only
  • 1.  How to get Provider ID in the customizing of Verify Login page

    Posted Wed October 27, 2021 08:57 AM
    Edited by Alison Donato Thu October 28, 2021 09:23 AM
    Hello, Verify experts.

    I'm looking for  how to get the Provider ID in the customizing Verify Login Page for the SP Initiated SAML SSO?

    I  would like to implement the custom ISV's default login page which switches the message text, depending on the type of SP.
    I'd like to know if I can get the Provider ID value of the parameter of SP's SAML Request in JS's logic of login page. 

    Q1.  Is there any way to get the parameter value of SP's SAML Request in the Login page's JS?
    Q2.  Where can I find the document about the list of special variables like a '@xxxx@'.   exp '@THEAM_ID@'?

    Any idear or advice is helpful to find the SP's information in Login page.

    --------------------------------------------------------------------------------------------------------------------------------
    updates:

    I've found the following doc about the macro which is for Verify Access.

    Q3.  Are these macro which are defined for Verify Access valid and able to be used in Verify too?

    Supported macros for customizing an authentication login form:

    https://www.ibm.com/docs/en/sva/10.0.2?topic=form-supported-macros-customizing-authentication-login#supportedmacrosforcustomizinganauthenticationloginform



    ------------------------------
    TAKAFUMI KINOSHITA
    ------------------------------


  • 2.  RE: How to get Provider ID in the customizing of Verify Login page

    Posted Thu December 16, 2021 05:47 AM
    Hello Takafumi,

    This URL provides information on the macros available in Verify SaaS pages:
    https://www.ibm.com/docs/en/security-verify?topic=reference-template-file-macros

    I don't see anything that would help you know the service provider on the login page.  I will ask around and see if I can find something.

    Jon.​

    ------------------------------
    Jon Harry
    Consulting IT Security Specialist
    IBM
    ------------------------------



  • 3.  RE: How to get Provider ID in the customizing of Verify Login page
    Best Answer

    Posted Thu December 16, 2021 03:34 PM

    Hi Takafumi,

    You could try getting the referrer then changing text based on that logic, assuming each SP is unique. I use this logic to redirect on ISV pages. You could use something similar to show/hide div/class/text. https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp

    Below will get a referrer that has  "stage" value in the url. 

    <html>
    redirect(window.location.href) do
    <script type="text/javascript" charset="utf-8">
    if (document.referrer.indexOf('stage') != -1) {
    window.location.href = "https://ibm.com";
        }
    </script>

    Web developer tools should help you see the referrer. Hopefully this helps!



    ------------------------------
    Robert Graham
    Cloud Security Consultant
    IAM Modernization
    IBM Expert Labs
    US
    ------------------------------