Project YellowFish is a user authentification and authorization framework (built on top of DataBlock).
Purpose:
-very simple API for authentification and authorization -be used without problems from any type of project (ASP.NET, Windows Forms, Windows services etc) -extensible and customizable
Building layers:
- database schema - API library for accessing the functionality. - UI to be included in your application.
Design:
For now the UserRoles and EntityRightTypes are enums (of course these can"extended" to be database entities).
Supported authorization modes
-authentification:
UserContext.Login("user","password");
-authorization YellowFish supports 2 types of authorization modes:
- simple: based on the user role type. For instance if user X is Administrator it has the right to view the content of the/Admin folder.
- entity based: we have users, entities and entity rights and we allow to set indidual entity rights for each user and entity.
Quickstart -import the schema into your database. -to authentificate the user use: UserContext.Login();
-for simple authorization: modify the UserRole enum to include all the roles your application supports. Then when the form/page loads you can check if the current user is part of a specific role and allow/deny access.
-for entity authorization: use the UserContext.HasRights() method to see if the user has access to the specified entity and action.
Update log: v0.1 - initial release v0.2 - UI updates. |