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
Security and Compliance
entitlements-azure
Commits
5ac2e4e2
Commit
5ac2e4e2
authored
Sep 12, 2020
by
Kishore Battula
Browse files
Merge branch 'users/kiveerap/FixIstioFilter' into 'master'
Adding conditional check on the component See merge request
!19
parents
da540e38
fe120182
Pipeline
#8451
canceled with stages
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/opengroup/osdu/azure/entitlements/security/AzureIstioSecurityFilter.java
View file @
5ac2e4e2
...
...
@@ -5,6 +5,7 @@ import com.nimbusds.jwt.JWTClaimsSet;
import
net.minidev.json.JSONArray
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.security.core.authority.SimpleGrantedAuthority
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken
;
...
...
@@ -26,6 +27,7 @@ import static org.springframework.util.StringUtils.hasText;
* For istio authentication filter.
*/
@Component
@ConditionalOnProperty
(
value
=
"azure.istio.auth.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
true
)
public
final
class
AzureIstioSecurityFilter
extends
OncePerRequestFilter
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
AzureIstioSecurityFilter
.
class
);
...
...
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