authn: Use new is_headers_auth function.
This commit is contained in:
parent
50474589c2
commit
d05c4fb045
3 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue