The CreatorCon Call for Content is officially open! Get started here.

can anyone explain me existing login widget

pratap1
Giga Contributor

Hi there,

In SP we have default login widget.

in server side scripting section

InkedLoginWidget_LI.jpg

Where i could find GlideSPUtil defination?

in client scripting

Inkedclientsidescripting_LI.jpg

what is spUtil object? and what is view_form.login?  

variable url cotains url for some rest api?

I have to create login for my application. should i use existing login module or create my custom login module?.
If i use existing login process then user details validation is done from existing User Table?

Can i use my own user table with existing login process? if yes then how?

Sorry for lots of question in single post. I am new to ServiceNow and creating my first application so need some help.

Thanks.

Best regards,

Pratap Ranawat

4 REPLIES 4

Jace Benson
Mega Sage

GlideSPUtil is new to me.  Not sure I can answer that question.

spUtil is a visible to you if you know where to look.

Here: https://hi.service-now.com/scripts/app.$sp/service.spUtil.js

I'm not sure that really answers that many questions but I hope it at least is a start.

Arun101
Kilo Contributor

Anyone got answers to his questions. 

what is spUtil object? and what is view_form.login?  

Does variable url contain URL for some rest API?

 

I have to create a login for my application. should I use existing login module or create my custom login module?.
If I use the existing login process then user details validation is done from the existing User Table?

 

Can I use my own user table with the existing login process? if yes then how?

 

Thanks,

Arun

I can see the rest call in login widget is hitting the above url

 

sputil is building the below path (angular.do?sysparm_type=view_form.login) with the passed paarameters

 

https://xxxx.service-now.com/angular.do?sysparm_type=view_form.login

 

If I use the existing login process then user details validation is done from the existing User Table?

I think yes, it will check the user table for sure  and create session for the user in server.

 

so you cant use your custom table for this I think.

 

 

 

Thank you very much SatheeshKumar. Can you tell me how "view_form.login" is linked to authentication?

I tried to trace the flow from client script to server-level validation. But I can't find the link between this view_form.login and any script includes/business rules.

Thanks & Regards,

Arun