6.1.1.3.2.24. linotp.lib.resolver module

resolver objects and processing

linotp.lib.resolver.defineResolver(params)[source]

set up a new resolver from request parameters

Parameters:params – dict of request parameters
linotp.lib.resolver.checkResolverType(resolver)[source]

check if a resolver of the given type exists :param resolver: full qualified resolver name

or optional with trailing conf like:
useridresolver.PasswdIdResolver.IdResolver.etc_resl
Returns:True or False
linotp.lib.resolver.splitResolver(resolver)[source]
linotp.lib.resolver.getResolverList(filter_resolver_type=None)[source]

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
linotp.lib.resolver.getResolverInfo(resolvername)[source]

return the resolver info of the given resolvername

Parameters:resolvername (string) – the requested resolver

:return : dict of resolver description

linotp.lib.resolver.deleteResolver(resolvername)[source]

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
linotp.lib.resolver.getResolverObject(resolvername)[source]

get the resolver instance from a resolver name spec - either take the class from the request context - or create one from the global object list + init with resolver config

Remark :the resolver object is preserved in the request context, so that a resolver could preserve a connection durung a request
Parameters:resolvername – the resolver string as from the token including the config as last part
Returns:instance of the resolver with the loaded config
linotp.lib.resolver.initResolvers()[source]

hook for the request start - create a deep copy of the dict with the global resolver classes

linotp.lib.resolver.closeResolvers()[source]

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