Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Replaced 'Navigation Sidebar' with 'navigation sidebar' by Qron Search and Replace.

...

To configure the Web application for the EmpowerID Reverse Proxy

  1. In the Navigation Sidebar navigation sidebar of the EmpowerID Web interface, expand Admin, then SSO Connections and click SAML.
  2. Search for the reverse proxy application you created for AndysBeans and locate the ACS URL and the User Entered URL.
  3. Copy the GUIDs at the end of the ACS URL and the User Entered URL. You will need to add these values to the AndysBeans Web.config file.



  4. From Windows Explorer, navigate to your Web application folder and open the Web.config file with any text editor.
  5. In the Web.config file, navigate to <appSettings> and add the following key/value pairs:
    • EidInitializeIdentityAssemblyInfo — This allows you to override the default logic for setting the HttpContext Identity. (HttpContext is the object that contains all the information about an individual HTTP request.) To override this, create your own assembly with an interface that implementsIInitializeUserIdentity and set this value to that of your custom assembly.

      The syntax for this setting is as follows:

      Div
      classshort-code-block


      Code Block
      languagexml
      <add key="EidInitializeIdentityAssemblyInfo" value="AssemblyTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>




    • EidIdpUrl — This specifies the URL to which users are redirected if they are not currently authenticated.

      The syntax for this setting is as follows, where "YourWebServer" is the FQDN of the server hosting your Web application and "YourSSOConnection" is the name of the SSO Connection you created for your protected Web application.

      Div
      classshort-code-block



      <add key="eidIdpUrl" value="https://YourWebServer/WebIDPForms/Login/YourSSOConnection"/>
      Code Block
      languagexml





    • EidSlidingExpirationTimeout — This specifies the time in minutes that a session cookie remains valid. Users will need to reauthenticate once this time windows expires.

      The syntax for this setting is as follows:

      Div
      classshort-code-block


      Code Block
      languagexml
      <add key="EidSlidingExpirationTimeout" value="60"/>




    • EventLogSourceName — This is an optional setting that allows you to specify a log source name for logging entries related to the agent. This setting is not used for the Reverse Proxy.

    • EventLogLogName — This is an optional setting that allows you to specify a log name for logging events related to the agent. This setting is not used for the Reverse Proxy.

    • EnableEventLogging — This is a Boolean that specifies whether Windows event logging is enabled or disabled for the agent. This should be set to false when the agent is running in production.

      The syntax for this setting is as follows:

      Div
      classshort-code-block


      Code Block
      languagexml
      <add key="EnableEventLogging" value="false">




    • HTTPMODULEAuthorizationEncryptionSalt - This is used to encrypt and decrypt the EmpowerID cookie containing the user identity and SSO Application IDs that person has authenticated against. This value can be arbitrary.

      The syntax for this setting is as follows:

      Div
      classshort-code-block


      Code Block
      languagexml
      <add key="HTTPMODULEAuthorizationEncryptionSalt" value="11021"/> 




    • HTTPMODULECustomAuthenticationAssembly - This is an advanced optional setting that specifies the fully qualified name of the dll/type to load to implement custom authentication and authorization logic.

    • HTTPMODULEIdentityPrincipalType - This determines the type of identity set by the agent. The values can be either "Forms" or "Claims" and should match the type of identity used by the Web application being protected.Since AndysBeans uses Forms authentication, the value of this key should be set to Forms.

      The syntax for this setting is as follows:

      Div
      classshort-code-block


      Code Block
      languagexml
      <add key="HTTPMODULEIdentityPrincipalType" value="Forms"/>




    • HTTPModuleTokenMode - This is used to set whether the agent operates in reverse proxy or SAML mode. In reverseproxy mode, the agent will assume the EID_USER variable inserted into the HTTP header is authenticating the user. To specify reverse proxy mode, set the value to "Forms." If you do not specify a value, the agent defaults to reverse proxy mode. 

      The syntax for this setting is as follows:

      Div
      classshort-code-block


      Code Block
      languagexml
      <add key="HTTPModuleTokenMode" value="Forms"/>




    • HTTPMODULEErrorUrl - This is an optional setting that you can use to specify a custom page for displayingmodule errors to your end users. If this key is not added to the config file, then the agent displays the default error page.

      The syntax for this setting is as follows, where /home/error is the location of the custom page on AndysBeans for displaying errors:

      Div
      classshort-code-block



      <add key="HTTPMODULEErrorUrl" value="http://sso.empowerid.com:8080/AndysBeans/home/error"/>
      Code Block
      languagexml





    • HTTPMODULENotAuthorizedUrl - This is an optional setting that you can use to specify a custom page for displaying messages to users who do not have the delegations to view a requested page. If this key is not added to the config file, then the agent displays the default not authorized message.

      The syntax for this setting is as follows:

      Div
      classshort-code-block



      Code Block
      languagexml
      <add key="HTTPMODULENotAuthorizedUrl" value="https://sso.empowerid.com:8080/AndysBeans/home/unauthorized/">





    • RedirectUrlGuid: This specifies the GUID that EmpowerID generated for the SSO Connection linked to your Web application when you created it. EmpowerID appends this GUID to the Target URL you entered for the SSO Connection.

      The syntax for this setting is as follows:

      Div
      classshort-code-block



      <add key="RedirectUrlGuid" value="42f07925-1b7b-48a0-b48b-a431cca0f133">
      Code Block
      languagexml






  6. In the config file, navigate to the <system.webServer> section and add the following under <modules runAllManagedModulesForAllRequests="true">. Make sure the .NET version matches the version of the .NET assembly you received from EmpowerID (Net35 or Net45).

    Div
    classshort-code-block


    Code Block
    languagexml
    <add name="EidAuthenticationHeaderModule" type="TheDotNetFactory.EmpowerID.Web.Core.Modules.EidAuthenticationHeaderModule,
                                                    TheDotNetFactory.EmpowerID.Web.Net45.Modules, Version=4.0.0.0, Culture=neutral"/>




  7. Save your changes and reset IIS.

...

Now that we have configured the AndysBeans Web.config file for use with the reverse proxy only, we can test the Testing Web agentAccess Management.