Access CUSTOMROLE outside of the logon service

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

Access CUSTOMROLE outside of the logon service

#1

Postby Segi » Mon Jul 13, 2015 3:53 pm

I use the LOGON service as part of the logon process on our Intranet where I add custom roles that I use throughout all of my applications to designate permissions for different applications at the time that the user logs in.

One of my applications is an administrative page that only I have access to where I do the actual assignment of user permissions. At the moment, when I make a permission change, the user has to sign out and then sign back in in order for the LOGON service to re-create the custom roles.

Is it possible to access the CUSTOMROLES resource that is defined in LOGON_REQUEST outside of the LOGON service so that I can reload the permissions dynamically without the user having to log out and log back in ?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Jul 14, 2015 7:55 am

There isn't an API that allows you to add roles once a user has signed on. This is by design, the intention being to isolate the security verification process (the Logon Service) from application programming as much as possible.

The only suggestion I can think of is that you could ask the user to re-enter their password as part of your application and then re-log them on by calling the Logon Service via system.securityManager.logon(). This would have to be done inside the user session - it isn't possible to externally change the security settings of other user sessions.
0 x


Who is online

Users browsing this forum: No registered users and 11 guests