mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
Remove redundant logging
This commit is contained in:
@@ -82,8 +82,6 @@ public class XsrfAccessTokenEnricher implements AccessTokenEnricher {
|
|||||||
if (configuration.isEnabledXsrfProtection()) {
|
if (configuration.isEnabledXsrfProtection()) {
|
||||||
if (isEnrichable()) {
|
if (isEnrichable()) {
|
||||||
builder.custom(Xsrf.TOKEN_KEY, createToken());
|
builder.custom(Xsrf.TOKEN_KEY, createToken());
|
||||||
} else {
|
|
||||||
LOG.trace("skip xsrf enrichment, because jwt session is started from a non wui client");
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG.trace("xsrf is disabled, skip xsrf enrichment");
|
LOG.trace("xsrf is disabled, skip xsrf enrichment");
|
||||||
@@ -98,15 +96,16 @@ public class XsrfAccessTokenEnricher implements AccessTokenEnricher {
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
LOG.trace("skip xsrf enrichment, because jwt session is started from a non wui client");
|
LOG.trace("skip xsrf enrichment, because jwt session is started from a non wui client");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
} catch (ProvisionException ex) {
|
} catch (ProvisionException ex) {
|
||||||
if (ex.getCause() instanceof OutOfScopeException) {
|
if (ex.getCause() instanceof OutOfScopeException) {
|
||||||
LOG.trace("skip xsrf enrichment, because no request scope is available");
|
LOG.trace("skip xsrf enrichment, because no request scope is available");
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
|
|||||||
Reference in New Issue
Block a user