Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Samuel Dudík
PA165 Winery Management System
Commits
dfd60bbb
Commit
dfd60bbb
authored
May 14, 2022
by
Jakub Balga
Browse files
Rest needs no authentication
parent
b6d24941
Pipeline
#139235
passed with stages
in 3 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
winery/webapp/src/main/java/cz/muni/fi/pa165/winery/webapp/security/WebSecurityConfiguration.java
View file @
dfd60bbb
...
...
@@ -38,7 +38,7 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
authorizeRequests
()
.
antMatchers
(
"/assets/**"
,
"/css/**"
,
"/js/**"
,
"/error"
,
"/login"
).
permitAll
()
.
antMatchers
(
"/assets/**"
,
"/css/**"
,
"/js/**"
,
"/error"
,
"/login"
,
"/rest/**"
).
permitAll
()
.
anyRequest
().
authenticated
()
.
and
()
.
csrf
()
...
...
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