web/views/sessions.py
changeset 10564 6b109900583b
parent 10557 9826dc78eec1
child 10565 f5063eae939e
--- a/web/views/sessions.py	Fri Dec 05 16:22:02 2014 +0100
+++ b/web/views/sessions.py	Thu Feb 13 16:43:33 2014 +0100
@@ -23,6 +23,7 @@
 from cubicweb import RepositoryError, Unauthorized, BadConnectionId
 from cubicweb.web import InvalidSession, component
 
+from cubicweb.web.views import authentication
 
 class AbstractSessionManager(component.Component):
     """manage session data associated to a session identifier"""
@@ -32,7 +33,7 @@
     def __init__(self, repo):
         vreg = repo.vreg
         self.session_time = vreg.config['http-session-time'] or None
-        self.authmanager = vreg['components'].select('authmanager', repo=repo)
+        self.authmanager = authentication.RepositoryAuthenticationManager(repo)
         interval = (self.session_time or 0) / 2.
         if vreg.config.anonymous_user()[0] is not None:
             self.cleanup_anon_session_time = vreg.config['cleanup-anonymous-session-time'] or 5 * 60