|
Help: Using Groups |
Introduction
The user group system employed in this web application allows multiple types (groups) of users to exist, both at the signup stage and at the individual page protection stage.
What this means is that you can select which group users signup into by embedding a set of encrypted tags into the html for the signup page.
For a site with multiple user groups, a different signup page can exist for each group.
Each user can only be part of one user group, but a protected page may allow access by multiple user groups.
Example
Two user groups exist; GroupA and GroupB..
Also, there are two protected pages; Page1.aspx and Page2.aspx
It is possible to setup the application so that Page1.aspx allows only GroupB users to login and access it's content, and Page2.aspx to allow both GroupA and GroupB users.
Usage
This system is implemented by a tag generator utility which allows hidden HTML form tags to be generated for the signup page, to specify which group new users become part of, and also to allow generation of a protection block specific to a protected page which details which user groups can login.
Continuing with the previous example;
The 'Generate HTML' tag generator utility would produce the following form tags for the signup page which allows GroupA users to signup;
<input name="SignupGroupName" type="hidden" value="GroupA">
<input name="SignupGroupKey" type="hidden" value="B07AB92A0D01....">
This html would need to be copied to the signup page between the <form> </form> tags, taking care to replace any existing tags.
The same utility could also create the page protection code that needs to be spliced into your protected .aspx pages;
<%@ Page Language="c#" AutoEventWireup="false" %>
<% Protect.VerifyIfUserLoggedIn("GroupA_GroupB"); %>
This code would need to be copied to the top of your protected web pages (inconjunction with renaming them from .html to .aspx).
This example code allows GroupA & GroupB users to login and have access to the page.
Next Steps..
- Add some user groups
- View existing groups
- Generate HTML group tags
|
|
|