A PyPgSQL authorizer for Twisted Internet Passport
Methods
|
|
|
|
__init__
|
__init__ ( self, dbpool )
|
|
_cbIdentity
|
_cbIdentity ( self, identData )
|
|
addEmptyIdentity
|
addEmptyIdentity (
self,
identityName,
hashedPassword,
callback=None,
errback=None,
)
Create an empty identity (no perspectives). Used by web admin interface.
|
|
addIdentity
|
addIdentity ( self, identity )
Create an identity.
|
|
addPerspective
|
addPerspective (
self,
identityName,
perspectiveName,
serviceName,
callback=None,
errback=None,
)
Add a perspective by name to an identity.
|
|
changePassword
|
changePassword (
self,
identityName,
hashedPassword,
callback=None,
errback=None,
)
|
|
getIdentities
|
getIdentities ( self )
Get the identies in the db. Used by web admin interface.
|
|
getIdentityRequest
|
getIdentityRequest ( self, name )
This name corresponds to the source_name column of the metrics_sources table.
Check in that table for a corresponding entry.
|
|
getPerspectives
|
getPerspectives ( self, identity_name )
Get the perspectives for an identity. Used by the web admin interface.
|
|
getServices
|
getServices ( self )
Get the known services. Used by the web admin interface.
|
|
removeIdentity
|
removeIdentity ( self, identityName )
Delete an identity
|
|
removePerspective
|
removePerspective (
self,
identityName,
perspectiveName,
callback=None,
errback=None,
)
Delete a perspective for an identity
|
|