Skip to main content

UserExchange Web Service Custom Application Integration Guide

Use this guide to enable Multi-Factor Authentication and Single Sign-on (SSO) access via encryption and web service to customer-controlled web applications.

Workflow:
  1. End users will be redirected (via browser) to SecureAuth IdP for authentication upon attempting access into the application without an internal session token or an encrypted string from SecureAuth.

  2. SecureAuth IdP will then authenticate the end user, and send the encrypted authenticated User ID in a cookie, query string, or the header (options represented as token in Custom Application Configuration Steps) to the application following a successful authentication.

  3. The application will detect the encrypted string, extract it, and then contact the SecureAuth IdP web service to retrieve the User ID in plaintext.

  4. The application then uses the User ID to create an internal session token and to authorize the user into the application.

Prerequisites

  • SecureAuth IdP 9.2 or later

  • Have a custom web application and modification access

  • Create a New Realm for the custom application integration in the SecureAuth IdP Web Admin

  • Configure the following tabs in the Web Admin before configuring the Post Authentication tab:

    • Overview – the description of the realm and SMTP connections must be defined

    • Data – an enterprise directory must be integrated with SecureAuth IdP

    • Workflow – the way in which users will access this application must be defined

    • Multi-Factor Methods – the Multi-Factor Authentication methods that will be used to access this page (if any) must be defined

Custom Application Configuration Steps

  1. Change the application's Login Page to look for some type of internal session token.

    This will alert the application to allow access to end users if it is present (bypassing additional authentication).

  2. If there is no internal session token, have the Login Page look to see if there is a Token Name, eu (the cookie, query string, or header from SecureAuth IdP).

  3. If there is no eu token, enable the redirection to the SecureAuth IdP URL, along with the ReturnURL as a query string.

    Example redirect URL: https://secureauth.company.com/secureauth2/?ReturnURL=https://app.company.com

    The SecureAuth IdP URL will be the Fully Qualified Domain Name (FQDN) of the SecureAuth IdP appliance, followed by the SecureAuth IdP custom application-integrated realm like https://secureauth.company.com/secureauth2.

    The ReturnURL will typically be the FQDN of the custom application.

  4. If there is an eu token, extract the value inside of the token.

  5. Make a web service call to retrieve the Authenticated User ID value by passing in the value of the eu token as input parameter to the function.

    A copy of the web service is located at the FQDN of the SecureAuth IdP appliance, followed by /SecureAuthWS/UserService.asmx, e.g. https://secureauth.company.com/SecureAuthWS/UserService.asmx

    A copy of the WSDL for development is located at the FQDN of the SecureAuth IdP appliance, followed by /SecureAuthWS/UserService.asmx?WSDL, e.g. https://secureauth.company.com/SecureAuthWS/UserService.asmx?WSDL

    The GetUserID takes one input parameter, the EncryptedUserString (the eu token value).

    This will return the Decrypted Authenticated User ID as a String regardless of when the token was generated.

    The GetUserIDWithTimeCheck takes two input parameters, EncryptedUserString and ValiditySeconds.

    This will only return the Decrypted Authenticated User ID as a String if the token was generated within the validity time frame (e.g. 5 - 10 seconds).

  6. Generate an internal session token, and take the Decrypted Authenticated User ID String and log the user into the application.

  7. (OPTIONAL) Clear the value inside the eu token so that it cannot be reused.

SecureAuth IdP Configuration Steps

In the Advanced Settings, make the following configurations.

  1. Select the Data tab.

  2. In the Profile Fields section, map the directory field that contains the user's Application ID to the SecureAuth IdP Property.

    For example, add the Application ID to the Email 2 Property if it is not already contained somewhere else

    44831611.png
  3. Save your changes.

  4. Select the Post Authentication tab.

  5. In the Post Authentication section, set Authenticated User Redirect to User Handler Web Service.

    An unalterable URL will be auto-populated in the Redirect To field, which will append to the domain name and realm number in the address bar (Authorized/EncryptUser.aspx).

    userexchange_web_service_001.png
  6. In the User ID Mapping section, set the SecureAuth IdP Property that corresponds to the directory field that contains the Application ID (Email 2).

    60564688.png
  7. In the URL Redirect section, set the URL to the application URL to where the end user will be redirected upon successful authentication, e.g. https://app.company.com.

    44831612.png
  8. In the User Encryption Key section, set the following configurations.

    Key Value

    Leave this field blank. If there is a value present in the field, remove it.

    Transport Name

    If needed, set it to a different name other than eu.

    If you change the Transport Name then it will need to be changed in the application as well.

    Modify the Custom Application Configuration Steps to replace the eu value with the new Transport Name value.

    Transport Method

    Set how the Authenticated User ID will be transported (Query String, Cookie, or Header).

    44831613.png
  9. Save your changes.

Forms Auth / SSO Token

Optionally, in the Forms Auth / SSO Token section, click the View and Configure FormsAuth keys/SSO token link to configure the token/cookie settings and configure this realm for SSO.

44833086.png