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
Dataset
Commits
32ea77d0
Commit
32ea77d0
authored
Sep 09, 2021
by
Meghnath Saha
Browse files
Disabling Spring Web Security for ODI Services
parent
da658b8f
Pipeline
#64298
canceled with stages
in 9 minutes and 14 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
provider/dataset-ibm/src/main/java/org/opengroup/osdu/dataset/provider/ibm/security/BasicAuthSecurityConfig.java
View file @
32ea77d0
...
...
@@ -16,15 +16,15 @@ import org.springframework.core.annotation.Order;
public
class
BasicAuthSecurityConfig
extends
WebSecurityConfigurerAdapter
{
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
csrf
().
disable
()
.
authorizeRequests
()
.
antMatchers
(
"/test/**"
,
"/v1/api-docs"
,
"/configuration/ui"
,
"/swagger-resources/**"
,
"/configuration/security"
,
"/swagger-ui.html"
,
"/info"
,
"/webjars/**"
).
permitAll
()
.
anyRequest
().
authenticated
().
and
().
oauth2ResourceServer
().
jwt
();
http
.
csrf
().
disable
()
;
//
.authorizeRequests()
//
.antMatchers("/test/**","/v1/api-docs",
//
"/configuration/ui",
//
"/swagger-resources/**",
//
"/configuration/security",
//
"/swagger-ui.html",
//
"/info",
//
"/webjars/**").permitAll()
//
.anyRequest().authenticated().and().oauth2ResourceServer().jwt();
}
}
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