linotp.lib.resolver module

resolver objects and processing


set up a new resolver from request parameters

Parameters:params – dict of request parameters

expects a resolver specification and returns a tuple containing the resolver class identifier and the config identifier


a resolver specification

format: <resolver class identifier>.<config identifier>

Returns:(cls_identifier, config_identifier)

Gets the list of configured resolvers

Parameters:filter_resolver_type (string) – Only resolvers of the given type are returned
Return type:Dictionary of the resolvers and their configuration

return the resolver info of the given resolvername

Parameters:resolvername (string) – the requested resolver

:return : dict of resolver description


delete a resolver and all related config entries

Paramm resolvername:
 the name of the to be deleted resolver
Returns:sucess or fail
Return type:boelean

get the resolver instance from a resolver specification.

Remark:internally this function uses the request context for caching.

the resolver string as from the token including the config identifier.

format: <resolver class identifier>.<config identifier>

Returns:instance of the resolver with the loaded config (or None if specification was invalid or didn’t match a resolver)
hook for the request start -
create a deep copy of the dict with the global resolver classes

hook to close the resolvers at the end of the request

linotp.lib.resolver.setupResolvers(config=None, cache_dir='/tmp')[source]
hook for the server start -
initialize the resolvers