SSO在Windows窗体 [英] SSO in Windows Forms

查看:216
本文介绍了SSO在Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要实现单点登录两个不同的C#Windows窗体应用程序

I need to implement Single Sign On for two different C# Windows Forms apps

你知道一个良好的框架,这是否?

Do you know a good framework that does this ?

推荐答案

当,你还可以在用户表中存储的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.

这篇关于SSO在Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆