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()
|
||||
|
||||
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:
|
||||
try:
|
||||
f = FormDef.get_by_urlname(path[0])
|
||||
|
|
Reference in New Issue