close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
- Timestamp:
-
Aug 6, 2008, 5:35:13 PM (16 years ago)
- Author:
-
cmlenz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v4
|
v5
|
|
23 | 23 | * Built-in processes and UI for user registration, activation, password resetting, and other high-level features. |
24 | 24 | |
25 | | == Application Mixin Approach == |
| 25 | == High-Level Architecture Stuff == |
| 26 | |
| 27 | === Application Mixin Approach === |
26 | 28 | |
27 | 29 | The current branch defines an `AuthMixIn` class that auth-enabled applications are supposed to subclass. It adds a couple of method stubs to the `Application` class, and contributes a [wiki:RequestFilters request filter] that performs authentication. |
28 | 30 | |
29 | | == Filters Refactoring == |
| 31 | === Filters Refactoring === |
30 | 32 | |
31 | 33 | Due to the way application mix-in classes can contribute filters, ordering request filters explicitly becomes too painful. The branch enhances the way request filters are defined by allowing them to declare the abstract service they provide (such as "localization" or "error-handling"), and also declare what services they rely on to do their job. For example: |
… |
… |
|
39 | 41 | |
40 | 42 | The ordering of request filters is then inferred from this dependency information. |
| 43 | |
| 44 | == Authentication Methods == |
| 45 | |
| 46 | === HTTP Authentication === |
| 47 | |
| 48 | === Form-based Authentication === |
| 49 | |
| 50 | === Hybrid HTTP/Cookies-based Authentication === |
| 51 | |
| 52 | This mode allows the use of HTTP authentication without having to protect the entire URL namespace. Only one or sub-resources (such as `/login`) are protected by HTTP authentication. When the user visits a protected URL, Diva sets a cookie (in the same way manner as used by form-based authentication), and pages outside of the protected area are able to identify the user and apply her permissions. |