This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Redirect after WAF Login

I'm using the reverse proxy to expose an internal webapp offloading SSL and user auth to the firewall.  Works fine so far but I don't see a way to have the login form redirect to a specific URL.  If I follow a link to http://www.example.com/foo, I'm redirected to https://www.example.com/login but after I enter valid credentials, it doesn't send me to the /foo URI.  Instead I'm getting the root URI.  Is there a way for the login for to store the URL what was intercepted and redirect there once the user auths successfully?



This thread was automatically locked due to age.
Parents Reply Children
  • Hmmm...   The "Inline Login" functionality of mod_auth_form [1] looks promising.  If I change "AuthFormLoginRequiredLocation" to "ErrorDocument 401" in the generated reverseproxy.conf, I'm getting what I'm looking for.  That should be really easy for the UTM guys to implement.  I'm thinking an "Inline Login" checkbox in the Reverse Auth > Form Templates entry.   When checked, the generated configs use ErrorDocument 401 instead of AuthFormLoginRequiredLocation.

    The only hitch I'm seeing so far is that I end up with a POST action to the originally requested URI but I don't think that's going to be an issue for me.  It would for an exposed REST API though.

    [1] httpd.apache.org/.../mod_auth_form.html