API Reference¶
Registry¶
Global Authentication Utility or Principal Registry
-
class
zope.principalregistry.principalregistry.PrincipalRegistry[source]¶ Bases:
objectAn in-memory implementation of
zope.authentication.interfaces.IAuthenticationandzope.authentication.interfaces.ILogout.
-
zope.principalregistry.principalregistry.principalRegistry= <zope.principalregistry.principalregistry.PrincipalRegistry object>¶ The global registry that the ZCML directives will modify.
-
class
zope.principalregistry.principalregistry.Principal(id, title, description, login, pw, pwManagerName='Plain Text')[source]¶ Bases:
zope.principalregistry.principalregistry.PrincipalBaseThe default implementation of
zope.security.interfaces.IGroupAwarePrincipalthatPrincipalRegistrywill create.
-
class
zope.principalregistry.principalregistry.UnauthenticatedPrincipal(id, title, description)[source]¶ Bases:
zope.principalregistry.principalregistry.PrincipalBaseAn implementation of
zope.authentication.interfaces.IUnauthenticatedPrincipal.
-
class
zope.principalregistry.principalregistry.UnauthenticatedGroup(id, title, description)[source]¶ Bases:
zope.principalregistry.principalregistry.GroupAn implementation of
zope.authentication.interfaces.IUnauthenticatedGroup.
-
class
zope.principalregistry.principalregistry.AuthenticatedGroup(id, title, description)[source]¶ Bases:
zope.principalregistry.principalregistry.GroupAn implementation of
zope.authentication.interfaces.IAuthenticatedGroup.
ZCML Directives¶
Schemas for directives that define principals and groups
-
interface
zope.principalregistry.metadirectives.IBasePrincipalDirective[source]¶ Base interface for principal definition directives.
-
id¶ Id
Id as which this object will be known and used.
-
title¶ Title
Provides a title for the object.
-
description¶ Title
Provides a description for the object.
-
-
interface
zope.principalregistry.metadirectives.IDefinePrincipalDirective[source]¶ Extends:
zope.principalregistry.metadirectives.IBasePrincipalDirectiveDefine a new principal.
-
login¶ Username/Login
Specifies the Principal’s Username/Login.
-
password¶ Password
Specifies the Principal’s Password.
-
password_manager¶ Password Manager Name
Name of the password manager will be used for encode/check the password
-
-
interface
zope.principalregistry.metadirectives.IDefineUnauthenticatedPrincipalDirective[source]¶ Extends:
zope.principalregistry.metadirectives.IBasePrincipalDirectiveDefine a new unauthenticated principal.
-
interface
zope.principalregistry.metadirectives.IDefineUnauthenticatedGroupDirective[source]¶ Extends:
zope.principalregistry.metadirectives.IBasePrincipalDirectiveDefine the unauthenticated group.
-
interface
zope.principalregistry.metadirectives.IDefineAuthenticatedGroupDirective[source]¶ Extends:
zope.principalregistry.metadirectives.IBasePrincipalDirectiveDefine the authenticated group.
-
interface
zope.principalregistry.metadirectives.IDefineEverybodyGroupDirective[source]¶ Extends:
zope.principalregistry.metadirectives.IBasePrincipalDirectiveDefine the everybody group.
Directives for defining principals and groups
-
zope.principalregistry.metaconfigure.principal(_context, id, title, login, password, description='', password_manager='Plain Text')[source]¶ Implementation of
zope.principalregistry.metadirectives.IDefinePrincipalDirective.
-
zope.principalregistry.metaconfigure.unauthenticatedPrincipal(_context, id, title, description='')[source]¶ Implementation of
zope.principalregistry.metadirectives.IDefineUnauthenticatedPrincipalDirective.
-
zope.principalregistry.metaconfigure.unauthenticatedGroup(_context, id, title, description='')[source]¶ Implementation of
zope.principalregistry.metadirectives.IDefineUnauthenticatedGroupDirective.
-
zope.principalregistry.metaconfigure.authenticatedGroup(_context, id, title, description='')[source]¶ Implementation of
zope.principalregistry.metadirectives.IDefineAuthenticatedGroupDirective.
-
zope.principalregistry.metaconfigure.everybodyGroup(_context, id, title, description='')[source]¶ Implementation of
zope.principalregistry.metadirectives.IDefineEverybodyGroupDirective.