Skip to content

Commit

Permalink
CLAP-310 Feat: 인증번호 이메일 전송 api 엔드포인트 security 설정
Browse files Browse the repository at this point in the history
<footer>
- 관련: #380
  • Loading branch information
joowojr committed Feb 6, 2025
1 parent 276fa0e commit 1100829
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer<HttpSecur
.requestMatchers(LOGIN_ENDPOINT).permitAll()
.requestMatchers(HEALTH_CHECK_ENDPOINT).permitAll()
.requestMatchers(REISSUANCE_ENDPOINT).permitAll()
.requestMatchers(ANONYMOUS_ENDPOINT).permitAll()
.requestMatchers(SWAGGER_ENDPOINTS).permitAll();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ private WebSecurityUrl() {
"/swagger-ui/**", "/swagger"
};
public static final String REISSUANCE_ENDPOINT = "/api/auths/reissuance";
public static final String ANONYMOUS_ENDPOINT = "/api/verification/email";
public static final String TEMPORARY_TOKEN_ALLOWED_ENDPOINT = "/api/members/initial-password";
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import clap.server.adapter.outbound.jwt.JwtClaims;
import clap.server.adapter.outbound.jwt.access.AccessTokenClaimKeys;
import clap.server.application.port.outbound.auth.forbidden.ForbiddenTokenPort;
import clap.server.application.port.outbound.auth.JwtProvider;
import clap.server.application.port.outbound.auth.forbidden.ForbiddenTokenPort;
import clap.server.exception.JwtException;
import clap.server.exception.code.AuthErrorCode;
import io.jsonwebtoken.Claims;
Expand Down Expand Up @@ -49,7 +49,7 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
SWAGGER_ENDPOINTS
).flatMap(Arrays::stream).toArray(String[]::new);

public static final String[] ANONYMOUS_ENDPOINTS = {LOGIN_ENDPOINT, REISSUANCE_ENDPOINT};
public static final String[] ANONYMOUS_ENDPOINTS = {LOGIN_ENDPOINT, REISSUANCE_ENDPOINT, ANONYMOUS_ENDPOINT};

@Override
protected void doFilterInternal(
Expand Down

0 comments on commit 1100829

Please sign in to comment.