Created
February 23, 2023 13:05
-
-
Save GHGHGHKO/3e8135e11bde6b205f2f9b1594c4cc28 to your computer and use it in GitHub Desktop.
SecurityConfig filterChain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .requestMatchers("/users/**").hasRole("ADMIN") | |
| .anyRequest().hasRole("USER") | |
| .and() | |
| .exceptionHandling().accessDeniedHandler(accessDeniedHandlerCustom) | |
| .and() | |
| .exceptionHandling().authenticationEntryPoint(authenticationEntryPointCustom) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment