authn: Use new is_headers_auth function.

This commit is contained in:
Johannes Bornhold 2016-06-06 10:15:00 +02:00
parent 50474589c2
commit d05c4fb045
3 changed files with 5 additions and 4 deletions

View file

@ -220,6 +220,7 @@ class RhodeCodeAuthPluginBase(object):
"""
raise NotImplementedError("Not implemented in base class")
@property
def is_headers_auth(self):
"""
Returns True if this authentication plugin uses HTTP headers as

View file

@ -105,8 +105,8 @@ class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
def name(self):
return 'headers'
@hybrid_property
def is_container_auth(self):
@property
def is_headers_auth(self):
return True
def use_fake_password(self):

View file

@ -96,8 +96,8 @@ class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
def name(self):
return "jasig-cas"
@hybrid_property
def is_container_auth(self):
@property
def is_headers_auth(self):
return True
def use_fake_password(self):