Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
INB
eTRANSAFE
pretox-rest-api
Commits
bea94fb6
Commit
bea94fb6
authored
Jan 10, 2022
by
Javi Corvi
Browse files
security change for readiness
parent
18398827
Pipeline
#26794
failed with stage
in 1 second
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/main/java/es/bsc/inb/ades/rest/api/controllers/LivenessController.java
View file @
bea94fb6
...
...
@@ -15,6 +15,7 @@ public class LivenessController {
@GetMapping
(
path
=
"/readiness"
)
public
String
readeness
()
{
System
.
out
.
println
(
"readiness"
);
return
"true"
;
}
}
src/main/java/es/bsc/inb/ades/rest/api/security/basic/inmemory/SecurityConfig.java
View file @
bea94fb6
...
...
@@ -17,7 +17,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
authorizeRequests
().
antMatchers
(
HttpMethod
.
OPTIONS
,
"/**"
).
permitAll
().
antMatchers
(
HttpMethod
.
GET
,
"/liveness"
).
permitAll
().
antMatchers
(
HttpMethod
.
GET
,
"/read
e
ness"
).
permitAll
().
anyRequest
().
authenticated
()
antMatchers
(
HttpMethod
.
GET
,
"/read
i
ness"
).
permitAll
().
anyRequest
().
authenticated
()
.
and
().
httpBasic
();
}
...
...
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