Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSO in Windows Forms

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

Do you know a good framework that does this ?

like image 298
Bogdan M. Avatar asked Jun 18 '26 12:06

Bogdan M.


1 Answers

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.

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.

like image 149
kol Avatar answered Jun 21 '26 02:06

kol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!