Symantec Access Management

Expand all | Collapse all

How to create redirects on webserver based application

  • 1.  How to create redirects on webserver based application

    Posted Dec 03, 2018 08:32 AM

    Hi

     

    Please suggest for a web-agent based solution on Apache. How can i forward my request to a specific web-page after successful login through the html login server

     

    I have a dedicate logon server serving html page to various application. The thing i want to achieve is when the url clicks on application URL hosted on a webserver and protected by CA -SSO webagent 12.52 Sp1 cr06 on a linux VM, he should be taken to the SSO login page and after successful login is done, the user should be taken to another wrapper application which is hosted on cloud.

     

    e.g Application URL :: https://abcd.mydomain.com >> User is taken to the SSO login page >> After successful login >> The request is forwarded to wrapper application >> http://defg.mydomain.com >> after that the wrapper forwards the control back to the application >>https://abcd.mydomain.com 

     

    The POC that i want to achieve is how to forward the request with the help of SSO login page to the wrapper application.

    Please note that the login page is common and i dont want to disrupt the functionality of other apps using the logon server.

    Thanks,

    Pallavi



  • 2.  Re: How to create redirects on webserver based application

    Posted Dec 04, 2018 08:31 AM

    So let me clarify this - your requirement is once user hits SSO protected Application URL :: https://abcd.mydomain.com after Successful login web agent should redirect to application page  >>https://abcd.mydomain.com and  request should not be forwarded through wrapper application >> http://defg.mydomain.com Correct ?



  • 3.  Re: How to create redirects on webserver based application

    Posted Dec 06, 2018 07:21 AM

    Hi ,

     

    It is actually a complicated solution. I'm working on a different strategy now. I need to modify my Target attribute which comes in URL when the policy server makes a post request to the login server.

     

    I need to know if there is any way this target can be modified on the very first time when it comes from the policy server.

    Hardcoding target in login.fcc doesnt seem to solve my purpose. As the target is getting modified when the login.fcc page is submitted.

    Or is there a possibility to modify the target when the user makes the first get request to the SSO webagent.

     

    e.g

    my URL looks like

    https://mydomain.com/siteminder/loginpage?TYPE=33554433&REALMOID=06-0009c721-7f1b-176b-9c74-f0d10a9c904d&GUID=&SMAUTHREASON=… 



  • 4.  Re: How to create redirects on webserver based application

    Posted Dec 06, 2018 07:29 AM

    try to attach response in webagent accept rule, once user is authenticated webagent should redirect user to desired URL define in response.

     



  • 5.  Re: How to create redirects on webserver based application

    Posted Dec 07, 2018 06:32 AM

    No luck, it is not solving my purpose. No ive created OnAuthAcceptredirect Response and i want to redirect to the the particular URL which is again protected by SSO. It is presenting me the login page once again.



  • 6.  Re: How to create redirects on webserver based application

    Posted Mar 27, 2019 12:01 PM

    Hi Pallavi,

     

    The login page appears again probably because of AzReject. You should be able to see this in trace log. Did you check that all realms have the Webagent GET, POST actions allow rule in policy? and the user group for the policy is set to the same?

     

    regards,

    Zen



  • 7.  Re: How to create redirects on webserver based application

    Posted Dec 07, 2018 06:45 AM

    Let me explain to you what im trying to achieve

    step 1: User Makes a get request to the resource e.g

    https://WebApplication.MyDomain.com

    Step 2 It goes through several data protection servers and then finally from the last server makes the get request to the webserver e.g as

    https://WebApplication-Secret.MyDomain1.com (We don't want the user to know this URL the user should be able to see this url as it is a internal URL)

    3 Now on the HTML login pagin what we see is below URL (Which has the target of the Step2 and i dont want the user to be able to see that Target)

    https://myloginServer/myloginpage.fcc?tTYPE=335544&REALMOID=06-00048-cc96-170f-a7b0-f01d&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=-SM-EZuEDqWcEfSF%2f6XwkG6&TARGET=-SM-HTTPS%3a%2f%2fmyWebApplication-Secret%2eMyDomain1%2ecom

    4. Is there any way i can stop this value of target showing in the URL of the login page.

     

    Ive tried to hardcode the $$Target$$ in myloginpage.cc but on submit of the login page it is redirecting to the same login page with the new Target value. I dont want to show login page twice to the user with different targets.



  • 8.  Re: How to create redirects on webserver based application

    Posted Mar 27, 2019 11:58 AM

    Hi Pallavi,

     

    If you enable SecureURL, users will never get to see the TARGET variable in the URL. everything will be encrypted into a single variable SMQUERYDATA which only the agent will know how to decrypt.

     

    The login page URL will look something like this

     

    https://sso.mycompany.com/auth/login.jsp?SMQUERYDATA=-SM-ZVH%2fjGfVJEwX4sMCEhEG5wbdvD24Ps72QCj0cHrdAI%2bqOqVw%2b7HO1ITr8qk9xAm6KX46ON85dNosHh3V29dA0fSRsM2SQ0oK05FVlgXwcOuddWdkUp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kHP6mjBWM1O4NqNFNqMILH79zQgWpa068gPmCbASRYIkabLJ%2bYusvZ9lWXzWDkVezot1u1RQJhHnEcrBZFUndN6t6s8pKXLzHPvpuuEShVR4UhytAoa8nXx5CVuYGCFOf5ZOpDAP8GfqH%2bsVRKMHvSGAYJzQUHy9yA9dXuZ4rZf3b8tWx6ZIjcGFqLnJ9N50qtyShIw764%2fXby%2bOuEcoEoHDILJzMC%2bmT9Ap%2be4l%2f72vlVnOV

     

    read here for more info about SecureURL configurations.

     

    https://docops.ca.com/ca-single-sign-on/12-8/en/configuring/web-agent-configuration/forms-authentication/how-to-configure-an-agent-to-support-html-forms-authentication/configure-advanced-fcc-settings/encrypt-query-string-parameters-in-redirection-urls 

     

    regards,

    Zen



  • 9.  Re: How to create redirects on webserver based application

    Broadcom Employee
    Posted Dec 07, 2018 08:21 AM

    You just need to setup Apache Reverse Proxy configurations. Refer the below links.

     

    How to use Apache as Reverse Proxy on CentOS & RHEL - LinuxTechLab 

     

    https://www.slashroot.in/how-configure-basic-apache-reverse-proxy 



  • 10.  Re: How to create redirects on webserver based application

    Posted Dec 10, 2018 04:33 AM

    Hi Ashok,

     

    Can you provide more concrete information on how to configure this through reverse proxy in apache ?

     

    Thanks,

    Pallavi



  • 11.  Re: How to create redirects on webserver based application

    Posted Mar 27, 2019 12:05 PM

    I might be missing something but this seems to be a straightforward job for the onAuthAccept event.

     

    Create onAuthAccept rule in  https://abcd.mydomain.com realm

    Then add that rule into policy and set response to onAcceptRedirect which sets the redirect URL to be http://defg.mydomain.com.

     

    Not quite sure what's the challenge here.

     

    regards,

    Zen