root: implement automatic tryauth (#12867)

This commit is contained in:
Benjamin Dauvergne 2019-06-04 17:03:50 +02:00 committed by Serghei Mihai
parent 1f93cc3435
commit ab27b72254
1 changed files with 4 additions and 1 deletions

View File

@ -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])