Knowledge Base

Support Policies

How to Create a Static File Download Page with Form Authentication

SecureAuth IdP Version affected: All

 

Description:

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.

Cause:

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

Resolution:

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="https://yourIdPserver.com/filerealm/Redirect.aspx?ReturnURL=../filerealm/Authorized/filename.extension">Hyperlink text</a>

    For example: <a href="https://jnguyen01vm.secureauth.com/SecureAuth14/Redirect.aspx?ReturnURL=../SecureAuth14/Authorized/Gateway.zip">Gateway</a>

Save your work and happy downloading!

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.