Compare commits
No commits in common. "b06b38f83cf8d4ccaceb8996409e27bec9b8c4aa" and "0c4eb97cd863e8c72877a924ab7f5a11eadaca6d" have entirely different histories.
b06b38f83c
...
0c4eb97cd8
2 changed files with 3 additions and 7 deletions
|
|
@ -72,10 +72,9 @@ class LoginBase:
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
def authMethod(self):
|
def authMethod(self):
|
||||||
meth = getConfigAuthMethod()
|
if getConfigAuthMethod() == 'cookie':
|
||||||
if meth == 'cookie':
|
|
||||||
return getAuthMethodCookieValue(self.request)
|
return getAuthMethodCookieValue(self.request)
|
||||||
return meth
|
return 'legacy'
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
def oidc_allowed(self):
|
def oidc_allowed(self):
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,7 @@ class ApiHandler(ApiCommon, NodeView):
|
||||||
target = self.context.target
|
target = self.context.target
|
||||||
if target is not None:
|
if target is not None:
|
||||||
targetView = self.getContainerView(target)
|
targetView = self.getContainerView(target)
|
||||||
if targetView is not None:
|
return targetView()
|
||||||
return targetView()
|
|
||||||
# TODO: check for request.method?
|
# TODO: check for request.method?
|
||||||
if self.request.method in ('PUT', 'POST'):
|
if self.request.method in ('PUT', 'POST'):
|
||||||
return self.error('Method not allowed', 405)
|
return self.error('Method not allowed', 405)
|
||||||
|
|
@ -112,8 +111,6 @@ class ApiHandler(ApiCommon, NodeView):
|
||||||
if target is None:
|
if target is None:
|
||||||
return None
|
return None
|
||||||
cv = self.getContainerView(target)
|
cv = self.getContainerView(target)
|
||||||
if cv is None:
|
|
||||||
return None
|
|
||||||
targetView = cv.getView(name)
|
targetView = cv.getView(name)
|
||||||
if targetView is None:
|
if targetView is None:
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue