- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2017 09:04 AM
Hi All,
I have created a page and i am trying to use the OOTB login widget in Service Portal. But the login widget does not show up. What could be the issue here.
Also, how can i make it a role based login.
Suggestions please
Thanks!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 09:07 AM
Hi Shipra,
To check the widget: impersonate one of your users and then go to the url with the widget. Use the same browser tab to do it so the session will be the same.
As for the role based login:
Redirect to Service Portal after login
Add the property they are talking about.
Then go to the script include mentioned (SPEntryPage) and add your redirection.You would probably need to add something like:
this.a = "/myURLa"; --> this is short for https://myCompany.service-now.com/myURLa
if (user.hasRole('A')) {
return this.a;
}
I am not redirecting users myself, so you will have to test and see where to put the login redirection commands.
harel
Please mark as helpful or correct based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2017 01:57 PM
Hi Shpira,
I think it will not show up if you are already logged in. So I added the login widget to a page with the ID "harel" and if I go in incognito mode to https://myCompany.service-now.com/sp?id=harel I can see it. But if I am already logged in, it does not show up in my page.
I think the first line in the HTML template shows this:
<div ng-if="!data.is_logged_in">
then show the the panel etc.
What do you mean by role-based login?
harel
Please mark as helpful or correct based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 02:49 AM
Hi Harel,
By role based login i mean, based on role the first page/index page will open. Suppose for a user with role 'A' after login dashboard page will open and for user 'B' after login profile page will show up.
For logged in user how will i check if the login widget is showing up or not.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 09:07 AM
Hi Shipra,
To check the widget: impersonate one of your users and then go to the url with the widget. Use the same browser tab to do it so the session will be the same.
As for the role based login:
Redirect to Service Portal after login
Add the property they are talking about.
Then go to the script include mentioned (SPEntryPage) and add your redirection.You would probably need to add something like:
this.a = "/myURLa"; --> this is short for https://myCompany.service-now.com/myURLa
if (user.hasRole('A')) {
return this.a;
}
I am not redirecting users myself, so you will have to test and see where to put the login redirection commands.
harel
Please mark as helpful or correct based on impact