r1 - 23 Aug 2007 - 11:26:28 - RandyLetnessYou are here: OSAF >  Journal Web  >  ContributorNotes > RandyLetnessNotes > CosmoZeroPointSevenModelDocs > CosmoZeroPointSevenSecurityNotes

Cosmo 0.7 Security Notes

Acegi Security Framework

Cosmo 0.7 utilizes the acegi security framework for authentication and authorization services. The FilterChainProxy groups all the necessary authentication and authorization processing logic. It is configured using spring and implemented as a servlet filter. Each protocol (dav/atom/morse code/etc) defines its own filter chain. For most cases the sequence looks like:

Authentication Processing Filters
Responsible for gathering authentication data (username/password/ticket/etc) and packaging into a common "Authentication request" object. For example, grap the Authorization header from an HTTP request, or look for username/password parameters from a HTTP form POST.

Exception Translation Filter
Responsible for catching security exceptions and deciding what to do with them (return 403 or forward to login).

Invocation Interceptor Filter
Responsible for authenticating (using AuthenticationManager) and authorizing (AccessDecisionManager) request. The request is authneticated using the data gathered from the authentication processing filters. Any exception thrown will be caught by the exception translation filter and handled appropriately.

Cosmo Security

Cosmo provides a CosmoSecurityManager , which is a facade for the Acegi Security system. All application logic uses an instance of CosmoSecurityManager for access to the current credentials. For more information refer to the org.osaf.cosmo.security.* packages.

-- RandyLetness - 23 Aug 2007

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.