How to use a custom Razor view files


The Identify uses the default supported views when the user does his authentication to his Service Provider site against the  Identify as well as the login page at the Identify site, e.g the username and password page.

This following article describes the process to apply your custom view to your login flow. It is recommended that you read the following document before starting:

Custom Authentication list view


Given that you have created a custom authentication list view named AuthenticationList_customized.cshtml as shown in the link above. Now that you can to use it for a specific SAML2.0/OAuth2.0/WSFederation service provider by doing the following steps.

How to apply the custom view using Identify Admin (/admin)

  1. Access the Identify Admin site.
  2. Open your SAML2.0 / OAuth2.0/WSFedration protocol connection and look for the “Authentication list view name” setting, enter your view name, e.g “AuthenticationList_customized” in this example:

Screenshot_33

How to apply the custom view using Safewhere Admin

  1. Access the Safewhere Admin site.
  2. Access the Settings\System screen and verify that the setting “Show Home Realm Discovery configuration” is True
  3. Access the Application list, open your SAML2.0 / OAuth2.0/OpenID Connect application.
  4. Access the Home Realm Discovery tab, enter the view name to the “Authentication list view name” setting, e.g “AuthenticationList_customized” in this example.

Custom login views


Given that you have created a custom login view named UserNamePasswordAuthentication_customized as shown in the link above. You can now use it for a specific U&P authentication connection by doing the following steps. By the way, custom login views are supported by the U&P, LDAP, and NemId connections. To make it simple, the U&P connection is used in this example.

How to apply the custom view using Identify Admin (/admin)

  1. Access the Identify Admin site.
  2. Open your U&P authentication and look for the “Custom authentication view” setting , enter your view name, e.g “UserNamePasswordAuthentication_customized” in this example.

Screenshot_34

How to apply the custom view using Safewhere Admin

This feature is not supported yet on Safewhere Admin.