In the older version of Ignition, I can simply get info about the user who is login into the designer by accessing "session.auth.user.userName". But in 8.1.31 this property is always null in the designer environment.
Also calling system.perspective.getSessionInfo() returns the username for the designer unauthenticated!!!
We are using it to track the hours we spend on projects.
Hey, Nader. Sorry to hear. Can you provide more details to help us replicate the issue? Feel free to DM me if you're more comfortable doing that. Thanks!
It is easy to replicate. I noticed this problem in 8.1.31 but it may happen in the previous version as well. But let's target 8.1.32. if you open Designer and go to Perspective session all properties of "session.auth.user" are set to null. In the older version, these properties are set correctly for the user who logs into the designer session.
So to get a username and roles I decided to call System.perspective.getSessionInfo() and match session.id with the return array but again this function also returns username unauthenticated!!!
I have a few servers I checked to see if I saw the issue on, and versions 8.1.20, 8.1.31, and 8.1.32 show authenticated and a user ID and userName just fine.
Is there a mismatch between who you allow to use designer and the projects user source/identity provider? Under gateway config->security->general
is this a different user source/Identity provider than what the project has? I wonder if that would have something to do with it. You hypothetically could be logging into designer as user who does not exist in the project's user source/identity provider and maybe that's why the null?
Did you make any other changes in the gateway or project properties besides upgrading?
Edit: Ignore this. I have this sort of setup, one user source for designer and another for the project itself and my username is still coming through correctly.