The idea for this post is to implement a button that will request a pop up login for authorisation. For instance, say there is a Fault Reset Button that will reset any error on a system. The idea is to request a login password that only an authorised/competent person will only be allowed to press it after the error investigation has been completed. Any ideas? Thank you in advance.
P.S Does this require scripting? Is it possible to implement this in Perspective?
What version of Ignition are you using? The onActionPerformed Component Event was introduced in Ignition 8.0.2. If you’re not seeing it, then it’s probably because you’re on an older version.
If you don’t want to upgrade, you could instead use the onClick event instead. Really, you just need an event that reliably triggers when the user taps/presses the button.
Also, if you’re having your users actually login, you could use the login Action instead of writing a script.
You need to set an Identity Provider for the login action to work. However, after rereading the thread, I’m uncertain what exactly you are trying to do.
Which of the following are you trying to do
Apply actual authentication, as in have the user log in as an authorized account
…or…
Call a popup that lets users type in some password/secret string, and then validate what was typed, all without changing the authenticated user.
Of the above two options, 1 is a bit simpler, but does require you to create and manage your users in an Identity Provider (which could simply be Ignition’s Identity Provider). Option 2 requires a bit of extra work and scripting, but is very possible. Personally, I’d suggest option 1.
Very helpful indeed. The aim is to follow No2 if I’m honest but I am not familiar with scripting at all.Ill update to version 8.0.4 and see how that goes. Cheers