IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Query Parameter from Referrer URL

    Posted 12/04/19 04:52 PM
    We've a requirement where we need to perform EAI &  fetch the query parameters from URL in AAC using custom InfoMap mapping rules.

    Below are the steps that are performed to establish EAI using AAC.

    1. Create a new Authentication Mechanism, Authentication Policy & Infomap Mapping rules.
    2. Enable LRR for Login operation on junction [/test]
    local-response-redirect:/test]
    local-response-redirect-uri = [login] /mga/sps/authsvc/policy/testAuth
    3. Create login template page in AAC template files for Login page.

    When user access the URL 
    https://abc.com/test?resumePath=test123&resumeSAML=test123

    It redirects to 
    https://abc.com/mga/sps/authsvc/policy/testAuth

    Now, login page is rendered from AAC templates folder for authentication.

    Question:

    How to get the query parameters(resumePath=test123&resumeSAML=test123) from initial URL after the junction (/test) in Infomap Mapping rule? What method or class to be used to get the query parameters.



    ------------------------------
    Thanks
    Vishnu Vamsi
    ------------------------------


  • 2.  RE: Query Parameter from Referrer URL

    Posted 12/04/19 05:05 PM
    Hello,

    the following works for me within Infomap:

    context.get(Scope.REQUEST, "urn:ibm:security:asf:request:parameter", "param");

    with URL https://sample.com/mga/sps/authsvc?urn:ibm:security:authentication:asf:myauth&param=test

    ------------------------------
    Jürgen Hitt
    ------------------------------



  • 3.  RE: Query Parameter from Referrer URL

    Posted 12/05/19 09:57 AM
    Thanks for you reply. Yes, this will work as long as the query params are available on /mga junction. My question is on how to retreive the query params from referrer url(initial URL before the LRR comes into play) before the redirection to /mga for authentication.

    ------------------------------
    Vishnu Vamsi
    ------------------------------