Facial recognition for login

Hi all,

Is there a way to login a user via scripting?

I have a setup where I can scan a users face, verify they exist in database and get their user id, all I need to do is login them automatically once this is done.

Thanks in advance.

After verifying whether the user is in the database, you could - instead of using their userID - login with the following function: system.perspective.login | Ignition User Manual

This would, however, start a session without authentication, so you wouldn’t directly be able to see which user is logged in.

No, you cannot. That function doesn't allow injecting a desired userID, because Identity Providers don't allow it. (And it would be a huge security hole.)

Not in Perspective.

You would need to use an external Identity Provider that securely did that itself. (You could write one--SAML is an open standard.)

My wording may not have made it clear, but I did not mean the user would be logged in. I was suggesting the facial recognition outside of ignition already verifies the user, so OP could make a choice to not use any extra level of verification and just open an unauthorized session after facial recognition is complete.

??

A user already has that just by opening Perspective, which they would have to have done to be able to use system.perspective.*. :man_shrugging:

You are essentially saying to just store the result (in a session var, perhaps) and just hand-roll all further security. Not terrible, but cuts off a lot of security options.

1 Like

The user in my situation needs to be verified , ie logged in with a session on the Ignition gateway.

How hard is it to write and setup a one-SAML?

I've never done it. But it is an open standard with open documentation.