Custom login page built with React.
It provides out-of-the-box ServiceNow login functionality, including remember me
option.
Login page implemented as a simple React application and can be used as a gateway for any ServiceNow application and portal.
- Copy/clone the repo
- Install all dependencies by
npm i
- Run the app by
npm start
IMPORTANT: You won't be able to test login process locally, since the app should be run inside of ServiceNow instance. However, you can customize HTML/CSS markup etc.
- Build the application by
npm run build
. - Save JS and CSS files from Build/static folder as Style Sheets in ServiceNow.
- Upload logo image from Build/static/media folder to ServiceNow: go to System UI/Images and create a new image with a name
static/media/login.633c58d6.png
:
- Create a direct UI page and copy HTML code from the file 'Build/index.html`. You also need to do the following steps:
- update
window.mainAppPage
with the URL where you want to redirect in case of successfull login - update
window.loggedUsername
with this specific code$[userName]
- update css and js references with the corresponding sys_ids from step #2
- update
You UI page should look like this:
- Make UI page public:
- activate Public Pages module under System Definition menu
- create a new record for you UI page
- You login page should be publicly available by the URL provided on the UI page record.
Questions, requests for customization or development services - [email protected]