From 9547543042f83c02ba99ec2adeb65faf8c6deef7 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 21 Mar 2024 22:22:32 -0700 Subject: [PATCH] Add missing auth. --- .../main/java/com/wisemapping/config/rest/RestAppConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wise-api/src/main/java/com/wisemapping/config/rest/RestAppConfig.java b/wise-api/src/main/java/com/wisemapping/config/rest/RestAppConfig.java index 8e7930c9..15b99e2c 100644 --- a/wise-api/src/main/java/com/wisemapping/config/rest/RestAppConfig.java +++ b/wise-api/src/main/java/com/wisemapping/config/rest/RestAppConfig.java @@ -47,8 +47,8 @@ public class RestAppConfig { .requestMatchers(mvc.pattern("/api/restful/app/config")).permitAll() .requestMatchers(mvc.pattern("/api/restful/maps/*/document/xml-pub")).permitAll() .requestMatchers(mvc.pattern("/api/restful/users/resetPassword")).permitAll() - .requestMatchers(mvc.pattern("/api/oauth2/googlecallback")).permitAll() - .requestMatchers(mvc.pattern("/api/oauth2/confirmaccountsync")).permitAll() + .requestMatchers(mvc.pattern("/api/restful/oauth2/googlecallback")).permitAll() + .requestMatchers(mvc.pattern("/api/restful/oauth2/confirmaccountsync")).permitAll() .requestMatchers(mvc.pattern("/api/restful/admin/**")).hasAnyRole("ADMIN") .requestMatchers(mvc.pattern("/**")).hasAnyRole("USER", "ADMIN") .anyRequest().authenticated()