Mega Code Archive

 
Categories / Delphi / Examples
 

Security

> Would anyone have ideas on how to implement security on the > various menu > options inside an application. I would like it to be > dependant upon the > windows login username and password. Just basic security on > the user login > name. > > How would I set something like that up? sample code would be awesome. Sorry, no code, but there are some patterns that could help in designing such a thing at: http://st-www.cs.uiuc.edu/users/hanmer/PLoP-97/Workshops.html Scroll down to section 2.6, Application Security. From the abstract: "Making an application secure is much harder than just adding a password protected login screen. This paper contains a collection of patterns to be used when dealing with application security. Secure Access Layer provides an interface for applications to use the security of the systems on which they are built. Single Access Point limits entry into the application through one single point. Check Point gives the developer a way to handle an unknown or changing security policy. Groups of users have different Roles that define what they can and cannot do. The global information about the user is distributed throughout the application with a Session. Finally, users are presented with either a Limited View of legal options or are given a Full View With Errors. These seven patterns work together to provide a security framework for building applications."