Skip to content

Commit

Permalink
Remove /api/auth/register from unsecured endpoints list.
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosarapura97 committed Nov 20, 2024
1 parent 4a1d71f commit 73bd314
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public JwtAuthenticationFilter(@Lazy IIdentityFeignClient identityFeignClient) {
public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
ServerHttpRequest request = exchange.getRequest();

final List<String> apiEndpoints = List.of("/api/auth/register", "/api/auth/token", "/api/auth/signup", "/eureka");
final List<String> apiEndpoints = List.of("/api/auth/token", "/api/auth/signup", "/eureka");

Predicate<ServerHttpRequest> isApiSecured = r -> apiEndpoints.stream()
.noneMatch(uri -> r.getURI().getPath().contains(uri));
Expand Down

0 comments on commit 73bd314

Please sign in to comment.