Metadata

Distro Index Owner:
rocky
Home Page:
http://dist.serverzen.com/pypi/d/cluesecure/

ClueSecure

Files

Indexes

RESTful based WSGI app and accompaying AJAX UI for managing users/groups

Introduction

ClueSecure is two things:

  1. A Python-based library/API for managing users and groups
  2. A WSGI app and Dojo-based AJAX UI for accessing the user/group management library/API

Although there is a standalone script for running ClueSecure it is not meant for standalone use. It is meant to embed inside another controller app that has need for management of users.

Example: Integrating WSGI app/middleware

  1. Setup djConfig in HTML/Javascript of application to include lookup for ClueSecure Javascript and setup function for displaying UI:

    <script type="text/javascript">
        var baseurl = '/secure';
        djConfig = {
            modulePaths: {
                'clue.secure': baseurl + '/static/clue/secure'
            }
        };
    
        dojo.require('clue.secure.mgt');
    
        var smanager;
        function display_security() {
            if (!smanager) {
                smanager = new clue.secure.mgt.SecurityManager(baseurl);
                smanager.display();
            }
        };
    </script>
    
  2. Include necessary CSS:

    <link rel="stylesheet" href="/secure/mgt.css">
    
  3. Instantiate and mount the WSGI app someplace. The following example will mount the ClueSecure wsgi app at /secure:

    usermanager = htpasswd.HtpasswdUserManager('users.passwd')
    groupmanager = groupfile.FileGroupManager('groups.info')
    
    app = securewsgi.make_middleware({},
                                     app=app,
                                     usermanager=usermanager,
                                     groupmanager=groupmanager)
    

Credits

Developed and maintained by Rocky Burt (rocky AT serverzen DOT com) of ServerZen Software in collaboration with Jazkarta, Inc.

Changelog

Unreleased

  • Project listings now use AJAX
  • New Dojo-based AJAX UI for managing users/groups
  • Added group support

0.1 - Apr 30, 2009

  • First release