Skip to content
Snippets Groups Projects
Commit 3c8d6a37 authored by Henrik Teksle Sandok's avatar Henrik Teksle Sandok
Browse files

Merge branch 'fix/allow-access-to-bank' into 'master'

fix: allow access to account balance

See merge request !94
parents 7855a49f bb5665be
No related branches found
No related tags found
1 merge request!94fix: allow access to account balance
Pipeline #285184 passed
......@@ -51,7 +51,8 @@ public class SecurityConfig {
.authorizeHttpRequests(auth -> {
auth.dispatcherTypeMatchers(DispatcherType.ERROR).permitAll()
.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()
.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