equal
deleted
inserted
replaced
16 |
16 |
17 |
17 |
18 class RepositoryAuthenticationManager(AbstractAuthenticationManager): |
18 class RepositoryAuthenticationManager(AbstractAuthenticationManager): |
19 """authenticate user associated to a request and check session validity""" |
19 """authenticate user associated to a request and check session validity""" |
20 |
20 |
21 def __init__(self): |
21 def __init__(self, vreg): |
22 self.repo = self.config.repository(self.vreg) |
22 super(RepositoryAuthenticationManager, self).__init__(vreg) |
23 self.log_queries = self.config['query-log-file'] |
23 self.repo = vreg.config.repository(vreg) |
|
24 self.log_queries = vreg.config['query-log-file'] |
24 |
25 |
25 def validate_session(self, req, session): |
26 def validate_session(self, req, session): |
26 """check session validity, and return eventually hijacked session |
27 """check session validity, and return eventually hijacked session |
27 |
28 |
28 :raise InvalidSession: |
29 :raise InvalidSession: |