Hi Justin, I was instructed to store the use's login and password in postgresql, separate from LDAP account along with a separate set of permission settings. I'm only planning to do a simple login and encrypted password comparison here. Coming from PHP, cookies and online session are the only ways I'm familiar with :(
So if I store the login data within the app itself as a variable/dictionary, it will be available as long as the GUI is still opened? If the user close the GUI and run it back again this variable will be reset? On Thu, Dec 29, 2011 at 11:52 AM, Justin Israel <[email protected]> wrote: > How are you authenticating? LDAP? Another dedicated server? > Do you really need something as formal as an http session when you can just > keep > a dictionary of properties on your app? Its not really the same as a web > interface where > the pages can refresh and the concept of sessions need to maintain state with > the server. > Your entire state can be kept right where on the application itself. > > How much security do you need? For instance, I have an app at work that sets > the interface to either READ or EDIT mode depending on the group the current > user is in, in the LDAP. So when the app starts, I check their login against > LDAP, and > if they are a Lead then they have EDIT mode. When the widgets load, they can > check > for that value and control the read-only state of the forms. > > In terms of the equivalent of an http session, that would mean you want to > keep a session > key locally only, and all properties are actually kept on a server that is > not directly visable > by the client. Each action would have to provide the session key to the > server, and then > the server would deliver some form of content. I dont know if it makes sense > in a desktop > application though. Auth once and store the state locally I think. > > > On Dec 27, 2011, at 11:44 PM, Panupat Chongstitwattana wrote: > >> Sorry if this is not directly a Maya question. >> >> For my current project I'm making PyQt GUI to be used in Maya. One of >> my requirement is that users need to login with username and password >> first. >> >> After authenticating the account, I'm not sure how I can store the >> session. I tried Cookie.Simplecookie but I guess it doesn't wok >> because the GUI is not running through HTTP. >> >> Any suggestion appreciate. >> >> -- >> view archives: http://groups.google.com/group/python_inside_maya >> change your subscription settings: >> http://groups.google.com/group/python_inside_maya/subscribe > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
