mirror of
https://github.com/dkmstr/openuds.git
synced 2025-10-14 15:33:43 +03:00
Compare commits
2 Commits
dev/andres
...
v4.0
Author | SHA1 | Date | |
---|---|---|---|
|
844060addb | ||
|
cd60b398a9 |
@@ -14,6 +14,7 @@ BASE_DIR = '/'.join(
|
||||
) # If used 'relpath' instead of abspath, returns path of "enterprise" instead of "openuds"
|
||||
|
||||
DEBUG = True
|
||||
PROFILING = False
|
||||
|
||||
# USE_X_FORWARDED_HOST = True
|
||||
SECURE_PROXY_SSL_HEADER = (
|
||||
|
@@ -657,7 +657,10 @@ class SAMLAuthenticator(auths.Authenticator):
|
||||
raise exceptions.auth.AuthenticatorException(gettext('Error processing SAML response: ') + str(e))
|
||||
errors = typing.cast(list[str], auth.get_errors())
|
||||
if errors:
|
||||
raise exceptions.auth.AuthenticatorException('SAML response error: ' + str(errors))
|
||||
logger.debug('Errors processing SAML response: %s (%s)', errors, auth.get_last_error_reason()) # pyright: ignore reportUnknownVariableType
|
||||
logger.debug('post_data: %s', req['post_data'])
|
||||
logger.info('Response XML: %s', auth.get_last_response_xml()) # pyright: ignore reportUnknownVariableType
|
||||
raise exceptions.auth.AuthenticatorException(f'SAML response error: {errors} ({auth.get_last_error_reason()})')
|
||||
|
||||
if not auth.is_authenticated():
|
||||
raise exceptions.auth.AuthenticatorException(gettext('SAML response not authenticated'))
|
||||
|
@@ -76,8 +76,8 @@ def get_urlpatterns_from_modules() -> list[typing.Any]:
|
||||
# Append patters from mod
|
||||
for up in urlpatterns:
|
||||
patterns.append(up)
|
||||
except Exception:
|
||||
logger.error('No patterns found in %s', module_fullname)
|
||||
except Exception as e:
|
||||
logger.error('No patterns found in %s (%s)', module_fullname, e)
|
||||
except Exception:
|
||||
logger.exception('Processing dispatchers loading')
|
||||
|
||||
|
Reference in New Issue
Block a user