Archived
Correction of security configuration.
This commit is contained in:
1 parent
cbb8317fdc
commit
20d4b25ea2
2 files changed
+11
-8
No files matched your search
@@ -47,15 +47,15 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
||||
"/api/posts/myPosts"
|
||||
).authenticated()
|
||||
.antMatchers(
|
||||
HttpMethod.GET,
|
||||
"/api/categories",
|
||||
"/api/images",
|
||||
"/api/posts",
|
||||
"/api/categories/**",
|
||||
"/api/images/**",
|
||||
"/api/posts/**"
|
||||
HttpMethod.GET,
|
||||
"/api/categories",
|
||||
"/api/images",
|
||||
"/api/posts",
|
||||
"/api/categories/**",
|
||||
"/api/images/**",
|
||||
"/api/posts/**"
|
||||
).permitAll()
|
||||
.anyRequest().authenticated()
|
||||
.anyRequest().permitAll()
|
||||
.and()
|
||||
// Allow to avoid login form at authentication failure from Angular app
|
||||
.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint)
|
||||
|
||||
Reference in new issue
Block a user