Commit 1a5f3a43 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

847: Implement development / debugging flag

Task-Url: https://minfba.de.dariah.eu/mantisbt/view.php?id=847
parent 5b6440c4
......@@ -57,8 +57,9 @@ public class LocalAuthenticationProvider implements DebugAwareAuthenticationProv
public Authentication getAuthentication() {
if (authDebug!=null && (System.getProperty("saml")==null || !Boolean.parseBoolean(System.getProperty("saml")))) {
SecurityContextHolder.getContext().setAuthentication(authDebug);
// This allows for a global logout of the test user
this.authDebug = null;
// TODO: allow for a global logout of the test user
// this does not work as intended as session timeouts lead to a logout as well
//this.authDebug = null;
}
return SecurityContextHolder.getContext().getAuthentication();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment