Add the Login Portlet

Adding the login portlet to an iframe HTML element creates an unbranded user and password prompt on any HTML page.

About this task

The user enters their user id and password and either presses the ENTER key or clicks the Login button. Once validated, the browser transfers to the logged-in ServiceNow session.

The portlet's size is 240 pixels wide and 125 pixels high. The portlet looks like:
Figure 1. Portal Login
Note: The ServiceNow login portlet is the only content supported within an iframe HTML element. To deliver ServiceNow content from a web page, see Service Portal instead.

To enable the login portlet:

Procedure

  1. Set the high security properties glide.security.use_csrf_token and glide.set_x_frame_options to false.
  2. Add the following HTML code to your portal:
    <iframe border = "0" frameborder = "0" width = "240" height = "125"src = "https://yourinstance.service-now.com/portal/login.htm" >< / iframe >

    If you do not want to change your instance's High Security settings, create a simple link instead.