且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SSO在Windows窗体

更新时间:2023-12-06 12:41:58

当,你还可以在用户表中存储的PC(例如PC名称的一些独特的ID的用户登录,的IP地址,...),在其上用户正在工作。每一个SSO功能的C#应用​​程序的一些PC上启动时,它可以在DB先检查电脑的ID是否存在于用户表(在登录用户的记录)。如果是的话,那么就可以跳过登录表单,并如显示它发现为当前用户的名称。

When a user logs in, you can also store in the Users table some unique ID of the PC (e.g. PC name, IP address, ...), on which the user is working. Every time an SSO-capable C# app starts on some PC, it can check in DB first whether the ID of the PC is present in the Users table (in the record of a logged-in user). If yes, then it can skip the login form, and e.g. show the name of the user it found as the current one.

您可以在SSO的粒度设置为你想要的任何水平。例如,如果一个子网地址被存储在用户表中,然后在该子网中的个人计算机的用户必须登录项只一次。如果当前的Windows用户的GUID存储,然后注销的Windows,并为不同的用户将需要另一登录到系统登录。

You can set the granularity of the SSO to any level you want. For example, if a subnet address is stored in the Users table, then the users of the PCs in this subnet have to log-in only once. If the GUID of the current Windows user is stored, then logging out of Windows and logging in as a different user will require another log-in to the system.