File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
plugins/UserPlugin/src/opengrok/auth/plugin/decoders Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,15 @@ public User fromRequest(HttpServletRequest request) {
54
54
timestamp = request .getHeader (OSSO_COOKIE_TIMESTAMP_HEADER );
55
55
userguid = request .getHeader (OSSO_USER_GUID_HEADER );
56
56
57
- if (username == null || userguid == null || username . isEmpty () || userguid .isEmpty ()) {
57
+ if (username == null || username .isEmpty ()) {
58
58
LOGGER .log (Level .WARNING ,
59
- "Can not construct an user: username or userguid could not be extracted" );
59
+ "Can not construct an user: username could not be extracted" );
60
+ return null ;
61
+ }
62
+
63
+ if (userguid == null || userguid .isEmpty ()) {
64
+ LOGGER .log (Level .WARNING ,
65
+ "Can not construct an user: userguid could not be extracted" );
60
66
return null ;
61
67
}
62
68
You can’t perform that action at this time.
0 commit comments