Skip to content
Snippets Groups Projects
Commit bb5665be authored by heikkkk's avatar heikkkk
Browse files

fix: allow access to account balance

parent 7855a49f
No related branches found
No related tags found
1 merge request!94fix: allow access to account balance
Pipeline #285179 passed
...@@ -51,7 +51,8 @@ public class SecurityConfig { ...@@ -51,7 +51,8 @@ public class SecurityConfig {
.authorizeHttpRequests(auth -> { .authorizeHttpRequests(auth -> {
auth.dispatcherTypeMatchers(DispatcherType.ERROR).permitAll() auth.dispatcherTypeMatchers(DispatcherType.ERROR).permitAll()
.requestMatchers("/swagger/**", "/api/auth/**", "/api/users/reset-password", "/api/users/send-feedback", .requestMatchers("/swagger/**", "/api/auth/**", "/api/users/reset-password", "/api/users/send-feedback",
"/api/users/confirm-password", "/api/question/**", "/api/images/**", "/redirect").permitAll().anyRequest().authenticated(); "/api/users/confirm-password", "/api/question/**", "/api/images/**", "/redirect",
"/bank/v1/account/balance/**").permitAll().anyRequest().authenticated();
}) })
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
.addFilterBefore(new AuthorizationFilter(), UsernamePasswordAuthenticationFilter.class) .addFilterBefore(new AuthorizationFilter(), UsernamePasswordAuthenticationFilter.class)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment