Badge & Username/Password Login


  • I need to login users both with username/password as well as with badges.
  • To handle badges I was just going to store the logged in user in system.util.getGlobals(), but I have extensively used Ignition’s security system for controlled access to each component.

Previous Forum Posts:

Possible (Bad) Solutions:

  • From what I can tell, others may be using the badge number as the password to work around this problem. Doing this would create a security hole and is a last resort.
  • Another solution would be to remove Ignition security from everything already built and add a script to each window to enable/disable components. This would be very time consuming, given the number of projects and windows.
  • Have a dummy account, change the roles of that account, login with that account, change the roles back to nothing for that account. Since the client does not handle updates to roles while a user is logged in, this will work. This is a race condition though, so it is possible clients opening at the same time will not open with the appropriate roles. Also updates to roles in the UserProfile would have to be somehow updated.


  • Does anyone know of a way to set the roles in the client at runtime without logging the user in, so that the Ignition security system can still be used?

I am missing why you need to change the user’s roles. If I understand correctly, you just need to handle both standard logins and badge logins for the same user? Could you create two different user sources that are essentially duplicates of each other as far as usernames and roles. One would be named standard logins and one badge logins. The standard login profile would be set as soft failover mode with the badge profile being the failover source. Then set the project user source to the standard login profile. If authentication fails via the standard profile, it would automatically failover to the badge profile.

1 Like

Thank you, I completely forgot about the User Profile failover feature.

1 Like