File tree 2 files changed +2
-4
lines changed
server/src/main/java/mucsi96/traininglog
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public class SecurityConfiguration {
22
22
SecurityFilterChain securityFilterChain (
23
23
HttpSecurity http ,
24
24
KubetoolsSecurityConfigurer kubetoolsSecurityConfigurer ) throws Exception {
25
- return kubetoolsSecurityConfigurer .configure (http ).securityMatcher ("/weight/**" , "/withings/sync" ).build ();
25
+ return kubetoolsSecurityConfigurer .configure (http ).securityMatcher ("/weight/**" ).build ();
26
26
}
27
27
28
28
@ Bean
Original file line number Diff line number Diff line change 1
1
package mucsi96 .traininglog .withings .oauth ;
2
2
3
- import org .springframework .beans .factory .annotation .Value ;
4
3
import org .springframework .context .annotation .Bean ;
5
4
import org .springframework .context .annotation .Configuration ;
6
- import org .springframework .context .annotation .Primary ;
7
5
import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
8
6
import org .springframework .security .oauth2 .client .OAuth2AuthorizedClientManager ;
9
7
import org .springframework .security .oauth2 .client .OAuth2AuthorizedClientProvider ;
@@ -24,7 +22,7 @@ SecurityFilterChain withingsSecurityFilterChain(
24
22
KubetoolsSecurityConfigurer kubetoolsSecurityConfigurer ,
25
23
WithingsAccessTokenResponseClient accessTokenResponseClient ) throws Exception {
26
24
return kubetoolsSecurityConfigurer .configure (http )
27
- .securityMatcher ("/withings/authorize " )
25
+ .securityMatcher ("/withings/** " )
28
26
.oauth2Client (configurer -> configurer
29
27
.authorizationCodeGrant (customizer -> customizer
30
28
.accessTokenResponseClient (accessTokenResponseClient )))
You can’t perform that action at this time.
0 commit comments