Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
7491a41f
Commit
7491a41f
authored
Jul 15, 2019
by
Sascha Herzinger
Browse files
fixed isSessionValid api call
parent
be318616
Changes
1
Hide whitespace changes
Inline
Side-by-side
rest-api/src/main/java/lcsb/mapviewer/api/users/UserController.java
View file @
7491a41f
...
...
@@ -4,6 +4,7 @@ import java.io.IOException;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
lcsb.mapviewer.common.Configuration
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -38,7 +39,7 @@ public class UserController extends BaseController {
* whether the current session is still valid.
*/
@GetMapping
(
value
=
"/isSessionValid"
)
@PreAuthorize
(
"isAuthenticated()"
)
@PreAuthorize
(
"isAuthenticated()
and authentication.name != '"
+
Configuration
.
ANONYMOUS_LOGIN
+
"'
"
)
public
Object
isSessionValid
(
Authentication
authentication
)
{
return
new
TreeMap
<>();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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