root: implement automatic tryauth (#12867)
This commit is contained in:
parent
1f93cc3435
commit
ab27b72254
|
@ -259,7 +259,10 @@ class AlternateRootDirectory(OldRootDirectory):
|
||||||
self.backoffice = get_publisher().backoffice_directory_class()
|
self.backoffice = get_publisher().backoffice_directory_class()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return Directory._q_traverse(self, path)
|
output = Directory._q_traverse(self, path)
|
||||||
|
if path and path[0] == 'saml':
|
||||||
|
return output
|
||||||
|
return self.automatic_sso(output)
|
||||||
except errors.TraversalError as e:
|
except errors.TraversalError as e:
|
||||||
try:
|
try:
|
||||||
f = FormDef.get_by_urlname(path[0])
|
f = FormDef.get_by_urlname(path[0])
|
||||||
|
|
Reference in New Issue