Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michal Čížek
flea-market-manager
Commits
97687dd1
Commit
97687dd1
authored
May 18, 2022
by
Lucia Lopuchova
Committed by
cizek
May 18, 2022
Browse files
Fix security config on stands
parent
ca5ab344
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/flea-market-manager-controller/src/main/java/cz/fi/muni/pa165/flea/market/manager/config/SecurityConfig.java
View file @
97687dd1
...
...
@@ -22,6 +22,7 @@ import java.util.Optional;
import
static
cz
.
fi
.
muni
.
pa165
.
flea
.
market
.
manager
.
config
.
PathsConfig
.
MARKET_EVENT
;
import
static
cz
.
fi
.
muni
.
pa165
.
flea
.
market
.
manager
.
config
.
PathsConfig
.
SESSION
;
import
static
cz
.
fi
.
muni
.
pa165
.
flea
.
market
.
manager
.
config
.
PathsConfig
.
STAND
;
import
static
cz
.
fi
.
muni
.
pa165
.
flea
.
market
.
manager
.
config
.
PathsConfig
.
USER
;
/**
...
...
@@ -61,6 +62,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.
antMatchers
(
HttpMethod
.
GET
,
API_DOCS
+
"/*"
).
permitAll
()
.
antMatchers
(
HttpMethod
.
GET
,
API_DOCS
).
permitAll
()
.
antMatchers
(
HttpMethod
.
GET
,
MARKET_EVENT
+
"/list"
).
permitAll
()
.
antMatchers
(
HttpMethod
.
GET
,
STAND
).
permitAll
()
.
anyRequest
().
authenticated
()
.
and
()
.
addFilterBefore
(
authFilter
,
UsernamePasswordAuthenticationFilter
.
class
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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