While I am implementing swagger I am facing the issue #25328
Closed
SreedharLilly
started this conversation in
General
Replies: 2 comments
-
Anyone have any idea please help on this |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you seeing this in a JHipster app? If so, please provide steps to reproduce the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
org.springdoc
springdoc-openapi-starter-webmvc-ui
2.0.2
@bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.csrf(csrf -> csrf.disable())
.exceptionHandling(exception -> exception.authenticationEntryPoint(unauthorizedHandler))
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.authorizeHttpRequests(auth ->
auth.requestMatchers("/api/auth/").permitAll()
.requestMatchers("/api/test/").permitAll()
.requestMatchers(AntPathRequestMatcher.antMatcher("/**")).permitAll()
.anyRequest().authenticated()
);
Beta Was this translation helpful? Give feedback.
All reactions