view wiki/config/more_samples/openid_teams_wikiconfig_snippet @ 4890:55dc44a8e9ee

Added config snippets and CHANGES documentation specific to OpenID updates with SREG and Teams extensions.
author Rowan Kerr <rowan@stasis.org>
date Wed, 22 Jul 2009 01:43:59 -0400
parents
children
line wrap: on
line source
    # This is a sample configuration snippet that shows moin's openid teams configuration
    # See HelpOnOpenID, HelpOnAuthentication and HelpOnConfiguration for more info.

    from MoinMoin.auth.openidrp import OpenIDAuth
    from MoinMoin.auth.openidrp_ext.openidrp_teams import *

    auth = [
        OpenIDAuth(modify_request=openidrp_teams_modify_request,
                   update_user=openidrp_teams_update_user,
                   create_user=openidrp_teams_create_user),
        # other auth methods can go here
        #MoinAuth()
    ]

    cookie_lifetime = (1, 12)

    # Launchpad Teams configuration
    # list all teams you want to grant access to the wiki
    openidrp_authorized_teams = ['team1', 'team2']

    # ACL configuration, based on Teams
    DesktopEdition = False
    openidrp_acl_admin = 'AclAdmin'
    openidrp_acl_page_postfix = 'Team'
    acl_rights_default = u'Known:read,write All:read' #,write,delete,revert,admin"
    acl_rights_before = u'%s:read,write,delete,revert,admin' % openidrp_acl_admin
    acl_hierarchic = True
    page_group_regex = ur'(?P<all>(?P<key>\S+)%s)' % openidrp_acl_page_postfix