How to Create a Static File Download Page with Form Authentication

    Applies to:
  • Legacy SecureAuth IdP
Deployment model:
  • On Premises
  • SecureAuth IdP Version affected: All



    This documentation will allow a creation of a web page that permits a download hyperlink after authentication.  This also utilizes form authentication, which secures the ability to protect the file being downloaded without being authenticated by simply navigating to the download URL directly.


    Module section of web.config is lacking a command, and page does not redirect after authentication from 2FA page.


    Append module section in web.config and link static file via hyperlink.

    1. Please copy the file you would like to be downloaded post authentication into the Authorized folder of the designated realm. IE: the .ZIP file placed in this location - D:\Secureauth\SecureAuth14\Authorized

    2. Open up the web.config of the same realm and append the existing modules section with the following information: runAllManagedModulesForAllRequests="true".
      <modules runAllManagedModulesForAllRequests="true" >
      <remove name="UrlRoutingModule-4.0" />
      <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" />
      <add name="ApplicationStartModule" type="SecureAuth.HttpModule.ApplicationStartModule,SecureAuth.HttpModule" />
      <remove name="Profile" />
      <add name="Profile" type="System.Web.Profile.ProfileModule" /></modules>

    3. Save the configuration and head over to Post-Authentication tab of the designated realm. Please select Native Mode Cert Landing Page.  Remember to hit “Save” before moving on!

    4. Now navigate over to the Overview tab, and scroll all the way down to click on Content and Localization.

    5. Once here, please do a CTRL+F to look for enrollmentcomplete_message. Edit this message with the following HTML hyperlink:
      <a href="">Hyperlink text</a>

      For example: <a href="">Gateway</a>

    Save your work and happy downloading!

    0 out of 0 found this helpful



    Please sign in to leave a comment.