Skip to content

Commit

Permalink
Merge pull request #88 from ssylver93/feature/WFPREV-34_3
Browse files Browse the repository at this point in the history
Test sonar
  • Loading branch information
ssylver93 authored Sep 30, 2024
2 parents ddea582 + 19353d7 commit 8bac981
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sonarscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
java-version: 17
distribution: 'adopt'
- name: SonarCloud Scan
- name: SonarCloud Scan
run: |
export MAVEN_OPTS="-Xmx10000m"
export NODE_OPTIONS="--max-old-space-size=4096"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,18 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti

http.csrf().disable();

http
.oauth2ResourceServer(oauth2 -> oauth2
.authenticationManagerResolver(authenticationManagerResolver())
)
.httpBasic().and()
.authorizeHttpRequests((authorize) -> authorize
.anyRequest().authenticated()
)
.exceptionHandling()
.authenticationEntryPoint(authenticationEntryPoint());
http.authorizeHttpRequests().anyRequest().permitAll();

// http
// .oauth2ResourceServer(oauth2 -> oauth2
// .authenticationManagerResolver(authenticationManagerResolver())
// )
// .httpBasic().and()
// .authorizeHttpRequests((authorize) -> authorize
// .anyRequest().authenticated()
// )
// .exceptionHandling()
// .authenticationEntryPoint(authenticationEntryPoint());

return http.build();
}
Expand Down

0 comments on commit 8bac981

Please sign in to comment.