Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Reference and Helper Services
CRS Catalog
Commits
0377dcd7
Commit
0377dcd7
authored
Oct 22, 2020
by
Sherman Yang
Browse files
enable AuthenticationRequestFilter to enforce entitlements
parent
05dc8fad
Pipeline
#12781
failed with stage
in 36 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
crs-catalog-core/src/main/java/org/opengroup/osdu/crs/middleware/AuthenticationRequestFilter.java
View file @
0377dcd7
...
...
@@ -13,6 +13,7 @@ import org.springframework.http.HttpHeaders;
import
org.springframework.lang.NonNull
;
import
org.springframework.lang.Nullable
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.util.StringUtils
;
...
...
@@ -31,6 +32,7 @@ import javax.servlet.ServletException;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
@Component
public
class
AuthenticationRequestFilter
extends
OncePerRequestFilter
{
private
static
Logger
logger
=
Logger
.
getLogger
(
AuthenticationRequestFilter
.
class
.
getName
());
...
...
Write
Preview
Supports
Markdown
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