コード例 #1
0
ファイル: noxml.py プロジェクト: tangi75/python2-petclinic
 def filterSecurityInterceptor(self):
     filter = FilterSecurityInterceptor()
     filter.auth_manager = self.authenticationManager()
     filter.access_decision_mgr = self.accessDecisionManager()
     filter.sessionStrategy = self.cherrypySessionStrategy()
     filter.obj_def_source = [("/vets.*", ["VET_ANY"]),
                              ("/editOwner.*", ["VET_ANY", "OWNER"]),
                              ("/.*", ["VET_ANY", "CUSTOMER_ANY"])]
     return filter
コード例 #2
0
ファイル: app_context.py プロジェクト: ws-os/spring-python
 def filterSecurityInterceptor(self):
     """This is the collection of rules used to determine if logged in users have permission to access a page. It
     works top to bottom, until it finds a URI pattern match."""
     filter = FilterSecurityInterceptor()
     filter.auth_manager = self.authenticationManager()
     filter.access_decision_mgr = self.accessDecisionManager()
     filter.sessionStrategy = self.cherrypySessionStrategy()
     filter.obj_def_source = [
                                      ("/.*", ["ROLE_ANY"])
                                      ]
     return filter
コード例 #3
0
ファイル: app_context.py プロジェクト: gregturn/twitter-clone
 def filterSecurityInterceptor(self):
     """This is the collection of rules used to determine if logged in users have permission to access a page. It
     works top to bottom, until it finds a URI pattern match."""
     filter = FilterSecurityInterceptor()
     filter.auth_manager = self.authenticationManager()
     filter.access_decision_mgr = self.accessDecisionManager()
     filter.sessionStrategy = self.cherrypySessionStrategy()
     filter.obj_def_source = [
                                      ("/.*", ["ROLE_ANY"])
                                      ]
     return filter
コード例 #4
0
ファイル: noxml.py プロジェクト: ram-peri/spring-python
 def filterSecurityInterceptor(self):
     filter = FilterSecurityInterceptor()
     filter.auth_manager = self.authenticationManager()
     filter.access_decision_mgr = self.accessDecisionManager()
     filter.sessionStrategy = self.cherrypySessionStrategy()
     filter.obj_def_source = [
         ("/vets.*", ["VET_ANY"]),
         ("/editOwner.*", ["VET_ANY", "OWNER"]),
         ("/.*", ["VET_ANY", "CUSTOMER_ANY"]),
     ]
     return filter