Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
dariahsp
Commits
5b6440c4
Commit
5b6440c4
authored
Oct 13, 2017
by
Gradl, Tobias
Browse files
847: Implement development / debugging flag
Task-Url:
https://minfba.de.dariah.eu/mantisbt/view.php?id=847
parent
09cd130d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dariahsp-core/src/main/java/eu/dariah/de/dariahsp/local/LocalAuthenticationProvider.java
View file @
5b6440c4
...
@@ -57,6 +57,8 @@ public class LocalAuthenticationProvider implements DebugAwareAuthenticationProv
...
@@ -57,6 +57,8 @@ public class LocalAuthenticationProvider implements DebugAwareAuthenticationProv
public
Authentication
getAuthentication
()
{
public
Authentication
getAuthentication
()
{
if
(
authDebug
!=
null
&&
(
System
.
getProperty
(
"saml"
)==
null
||
!
Boolean
.
parseBoolean
(
System
.
getProperty
(
"saml"
))))
{
if
(
authDebug
!=
null
&&
(
System
.
getProperty
(
"saml"
)==
null
||
!
Boolean
.
parseBoolean
(
System
.
getProperty
(
"saml"
))))
{
SecurityContextHolder
.
getContext
().
setAuthentication
(
authDebug
);
SecurityContextHolder
.
getContext
().
setAuthentication
(
authDebug
);
// This allows for a global logout of the test user
this
.
authDebug
=
null
;
}
}
return
SecurityContextHolder
.
getContext
().
getAuthentication
();
return
SecurityContextHolder
.
getContext
().
getAuthentication
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment