Skip to content
Snippets Groups Projects
Commit 13b24f2e authored by Patrick Radtke's avatar Patrick Radtke
Browse files

Add modulename to more log lines

parent d37f58f8
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ class OAuth2 extends \SimpleSAML_Auth_Source
$collaborators = [];
if ($config->getBoolean('logHttpTraffic', false) === true) {
$format = $config->getString('logMessageFormat', self::DEBUG_LOG_FORMAT);
Logger::debug('Enable traffic logging');
Logger::debug('authoauth2: Enable traffic logging');
$handlerStack = HandlerStack::create();
$handlerStack->push(
Middleware::log(new PsrLogBridge(), new MessageFormatter("authoauth2: $providerLabel $format")),
......
......@@ -51,7 +51,7 @@ class OAuth2ResponseHandler
public function handleResponseFromRequest(array $request)
{
Logger::debug('authoauth2 : linkback request=' . var_export($request, true));
Logger::debug('authoauth2: linkback request=' . var_export($request, true));
if (!$this->canHandleResponseFromRequest($request)) {
// phpcs:ignore Generic.Files.LineLength.TooLong
......@@ -106,7 +106,7 @@ class OAuth2ResponseHandler
$error = @$request['error'];
if (in_array($error, $this->errorsUserConsent)) {
// phpcs:ignore Generic.Files.LineLength.TooLong
Logger::debug("Authsource '" . $source->getAuthId() . "' User denied access: $error. Msg: " . @$request['error_description']);
Logger::debug("authoauth2: Authsource '" . $source->getAuthId() . "' User denied access: $error. Msg: " . @$request['error_description']);
if ($source->getConfig()->getBoolean('useConsentErrorPage', true)) {
$consentErrorPageUrl = Module::getModuleURL('authoauth2/errors/consent.php');
HTTP::redirectTrustedURL($consentErrorPageUrl);
......@@ -117,7 +117,7 @@ class OAuth2ResponseHandler
}
$errorMsg = 'Authentication failed: [' . $error . '] ' . @$request['error_description'];
Logger::debug("Authsource '" . $source->getAuthId() . "' return error $errorMsg");
Logger::debug("authoauth2: Authsource '" . $source->getAuthId() . "' return error $errorMsg");
$e = new \SimpleSAML_Error_AuthSource($source->getAuthId(), $errorMsg);
\SimpleSAML_Auth_State::throwException($state, $e);
}
......
......@@ -37,7 +37,7 @@ class AdjustableGenericProvider extends GenericProvider
if (array_key_exists($field, $responseValues)) {
$toAdd[$param] = $responseValues[$field];
} else {
Logger::debug("Token response missing field '$field'");
Logger::debug("authoauth2: Token response missing field '$field'");
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment