-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/#8 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Feat/#8 #9
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fae13bf
:sparkles: feat: build.gradle ์ JWT ๊ด๋ จ ์์กด์ฑ ์ถ๊ฐ
ojy0903 ec55155
:sparkles: feat: RefreshToken ์ํฐํฐ ์ถ๊ฐ
ojy0903 5597335
:sparkles: feat: ๋ก๊ทธ์ธ ์์ฒญ DTO, JWT ํ ํฐ ๋ฐํ DTO ์ถ๊ฐ
ojy0903 97de3e5
:sparkles: feat: RefreshTokenRepository ์ถ๊ฐ
ojy0903 07056d2
:sparkles: feat: ํ ํฐ ๊ด๋ จ ์์ธ ์ฝ๋ ์ถ๊ฐ, RefreshTokenException ์ถ๊ฐ
ojy0903 717c534
:bug: fix: RefreshTokenException ์ญ์ . RefreshTokenRepository ์กฐํ ๊ด๋ จ ์์ธ๋โฆ
ojy0903 7318eb3
:sparkles: feat: ํ ํฐ ๊ด๋ จ ์์ธ ์ฝ๋ AuthErrorCode์ RefreshToken ๋ด๋ถ email ์กฐํ โฆ
ojy0903 68f7747
:sparkles: feat: JWT ๊ด๋ จ ํด๋์ค ์ถ๊ฐ(JwtTokenProvider, JwtAuthenticationFilโฆ
ojy0903 a73188a
:sparkles: feat: ํ์(User) ๋ก๊ทธ์ธ ์ ์์ด๋๋ก ์ด๋ฉ์ผ์ ์
๋ ฅํ๋ฏ๋ก, ์ด๋ฅผ ์ํ UserDetails ๊ด๋ จโฆ
ojy0903 5c54833
:sparkles: feat: SecurityConfig ์ ๊ทผ ์ ํ ๊ด๋ จ ์ถ๊ฐ
ojy0903 da33fea
:sparkles: feat: GlobalExceptionHandler ๋ก๊ทธ์ธ ์คํจ ์๋ต, JWT ํ ํฐ invalid ์๋ต โฆ
ojy0903 08bf881
:sparkles: feat: ๋ก๊ทธ์ธ, ํ ํฐ ์ฌ๋ฐ๊ธ ๋ก์ง ํฌํจ๋ Service ํด๋์ค ์ถ๊ฐ
ojy0903 86e53bf
:sparkles: feat: ๋ก๊ทธ์ธ, ํ ํฐ ์ฌ๋ฐ๊ธ API ๋ฅผ ์ํ Controller, Swagger Docs ์ถ๊ฐ
ojy0903 e47d34e
:bug: fix: ํ ํฐ ๊ด๋ จ ์๋ฌ์ฝ๋ AuthErrorCode ์ code ๊ฐ ์์ ๋ฐ Swagger Docs code ๊ฐ ์์
ojy0903 a8701df
:art: style: reissue -> reIssue ๋ฉ์๋๋ช
์์
ojy0903 dcbe1b5
:art: style: ์ฝ๋ ์ค๋ช
์ฃผ์ ์ถ๊ฐ
ojy0903 70e3797
:bug: fix: ๋น๋ ํ
์คํธ ์คํจ ํด๊ฒฐ์ ์ํ test ํ๊ฒฝ์ฉ application.yml ์ถ๊ฐ(ํด๋น ๊ฐ ์ค์ ์ฌ์ฉ X)
ojy0903 83b94b3
:sparkles: feat: @AuthenticationPrincipal ์ฌ์ฉ ์์ ExampleController ์ ์ถ๊ฐ
ojy0903 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...ain/java/com/whereyouad/WhereYouAd/domains/user/application/dto/request/LoginRequest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package com.whereyouad.WhereYouAd.domains.user.application.dto.request; | ||
|
|
||
| import jakarta.validation.constraints.Email; | ||
| import jakarta.validation.constraints.NotBlank; | ||
|
|
||
| public record LoginRequest( | ||
| @NotBlank(message = "์ด๋ฉ์ผ์ ํ์์ ๋๋ค.") | ||
| @Email(message = "์ด๋ฉ์ผ ํ์์ด ์ฌ๋ฐ๋ฅด์ง ์์ต๋๋ค.") | ||
| String email, | ||
| @NotBlank(message = "๋น๋ฐ๋ฒํธ๋ ํ์์ ๋๋ค.") | ||
| String password | ||
| ) {} |
86 changes: 86 additions & 0 deletions
86
src/main/java/com/whereyouad/WhereYouAd/domains/user/domain/service/AuthService.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| package com.whereyouad.WhereYouAd.domains.user.domain.service; | ||
|
|
||
| import com.whereyouad.WhereYouAd.domains.user.application.dto.request.LoginRequest; | ||
| import com.whereyouad.WhereYouAd.domains.user.exception.code.AuthErrorCode; | ||
| import com.whereyouad.WhereYouAd.domains.user.persistence.entity.RefreshToken; | ||
| import com.whereyouad.WhereYouAd.domains.user.persistence.repository.RefreshTokenRepository; | ||
| import com.whereyouad.WhereYouAd.global.exception.AppException; | ||
| import com.whereyouad.WhereYouAd.global.security.jwt.CustomUserDetailsService; | ||
| import com.whereyouad.WhereYouAd.global.security.jwt.JwtTokenProvider; | ||
| import com.whereyouad.WhereYouAd.global.security.jwt.dto.TokenResponse; | ||
| import lombok.RequiredArgsConstructor; | ||
| import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; | ||
| import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; | ||
| import org.springframework.security.core.Authentication; | ||
| import org.springframework.security.core.userdetails.UserDetails; | ||
| import org.springframework.stereotype.Service; | ||
| import org.springframework.transaction.annotation.Transactional; | ||
|
|
||
| @Service | ||
| @RequiredArgsConstructor | ||
| public class AuthService { | ||
|
|
||
| private final AuthenticationManagerBuilder authenticationManagerBuilder; | ||
| private final JwtTokenProvider jwtTokenProvider; | ||
| private final RefreshTokenRepository refreshTokenRepository; | ||
| private final CustomUserDetailsService customUserDetailsService; | ||
|
|
||
| //์ต์ด ๋ก๊ทธ์ธ์ ํตํด AccessToken ๊ณผ RefreshToken ๋ฐ๊ธ ๋ฐ๋ ๋ฉ์๋ | ||
| @Transactional | ||
| public TokenResponse login(LoginRequest request) { | ||
| //email, password ๊ธฐ๋ฐ Spring Security๊ฐ ์ฌ์ฉํ ์ธ์ฆ ๊ฐ์ฒด(AuthenticationToken) ์์ฑ | ||
| UsernamePasswordAuthenticationToken authenticationToken = | ||
| new UsernamePasswordAuthenticationToken(request.email(), request.password()); | ||
|
|
||
| //์ค์ password ๊ฒ์ฆ | ||
| // authenticate()๊ฐ ์คํ๋๋ฉด CustomUserDetailsService.loadUserByUsername์ด ํธ์ถ๋์ด DB์ ์ ์ ์ ๋ณด์ ๋น๊ตํฉ๋๋ค. | ||
| Authentication authentication = authenticationManagerBuilder.getObject().authenticate(authenticationToken); | ||
|
|
||
| //์ธ์ฆ ์ ๋ณด ๊ธฐ๋ฐ JWT ํ ํฐ(Access & Refresh) ์์ฑ | ||
| TokenResponse tokenResponse = jwtTokenProvider.generateToken(authentication); | ||
|
|
||
| //RefreshToken ์ ์ฅ -> ์์ผ๋ฉด ์์ฑ, ์ด๋ฏธ ์์ผ๋ฉด update | ||
| RefreshToken refreshToken = refreshTokenRepository.findByKeyId(request.email()) | ||
| .map(entity -> entity.updateValue(tokenResponse.refreshToken())) | ||
| .orElse(RefreshToken.builder() | ||
| .keyId(request.email()) | ||
| .value(tokenResponse.refreshToken()). | ||
| build()); | ||
|
|
||
| refreshTokenRepository.save(refreshToken); | ||
|
|
||
| return tokenResponse; | ||
| } | ||
|
|
||
| //๊ธฐ์กด AccessToken ๋ง๋ฃ ์ RefreshToken์ ํตํด AccessToken & RefreshToken ์ ์ฌ๋ฐ๊ธ ๋ฐ๋ ๋ฉ์๋ | ||
| @Transactional | ||
| public TokenResponse reIssue(String refreshToken) { | ||
| jwtTokenProvider.validateToken(refreshToken); //refreshToken ์์ฒด์ ๋ฌธ์ ๊ฐ ์์ ์ ํด๋น ๋ถ๋ถ์์ ์์ธ ๋ฐ์ | ||
|
|
||
| String email = jwtTokenProvider.getSubject(refreshToken); //refreshToken ์์ ์ฌ์ฉ์ email ๊ฐ ์ถ์ถ | ||
|
|
||
| //๊ธฐ์กด์ ํด๋น email์ RefreshToken ์ด ์๋์ง ์กฐํ | ||
| RefreshToken savedRefreshToken = refreshTokenRepository.findByKeyId(email) | ||
| .orElseThrow(() -> new AppException(AuthErrorCode.TOKEN_EXPIRED)); | ||
|
|
||
| //ํด๋น ์ ์ฅ๋ RefreshToken ๊ณผ ์ ๋ ฅ๋ฐ์ RefreshToken ์ด ๋์ผํ์ง ํ์ธ | ||
| if (!savedRefreshToken.getValue().equals(refreshToken)) { | ||
| throw new AppException(AuthErrorCode.INVALID_TOKEN_FORMAT); | ||
| } | ||
|
|
||
| //์๋ก์ด ํ ํฐ ์์ฑ์ ์ํด ์ ์ ์ต์ ์ ๋ณด ์กฐํ | ||
| UserDetails userDetails = customUserDetailsService.loadUserByUsername(email); | ||
|
|
||
| // Spring Security ์ธ์ฆ ๊ฐ์ฒด ์์ฑ | ||
| UsernamePasswordAuthenticationToken authentication = | ||
| new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities()); | ||
|
|
||
| //์๋ก์ด Access & RefreshToken ์์ฑ ๋ฐ ์ ์ฅ | ||
| TokenResponse tokenResponse = jwtTokenProvider.generateToken(authentication); | ||
| savedRefreshToken.updateValue(tokenResponse.refreshToken()); | ||
| refreshTokenRepository.save(savedRefreshToken); | ||
|
|
||
| //์๋ก์ด Access & RefreshToken ๋ฐํ | ||
| return tokenResponse; | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/whereyouad/WhereYouAd/domains/user/exception/code/AuthErrorCode.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package com.whereyouad.WhereYouAd.domains.user.exception.code; | ||
|
|
||
| import com.whereyouad.WhereYouAd.global.exception.BaseErrorCode; | ||
| import lombok.AllArgsConstructor; | ||
| import lombok.Getter; | ||
| import org.springframework.http.HttpStatus; | ||
|
|
||
| @Getter | ||
| @AllArgsConstructor | ||
| public enum AuthErrorCode implements BaseErrorCode { | ||
| //ํ ํฐ ๊ด๋ จ | ||
| TOKEN_EXPIRED(HttpStatus.UNAUTHORIZED, "AUTH_401_2", "ํ ํฐ์ด ๋ง๋ฃ๋์์ต๋๋ค."), | ||
| INVALID_TOKEN_FORMAT(HttpStatus.UNAUTHORIZED, "AUTH_401_3", "์๋ชป๋ ํ ํฐ ํ์์ ๋๋ค."), | ||
|
|
||
| // ๋ก๊ทธ์ธ ์คํจ (๋น๋ฐ๋ฒํธ ํ๋ฆผ or ๊ณ์ ์์) | ||
| LOGIN_FAILED(HttpStatus.UNAUTHORIZED, "AUTH_401_1", "์์ด๋ ๋๋ ๋น๋ฐ๋ฒํธ๊ฐ ์ผ์นํ์ง ์์ต๋๋ค."), | ||
|
|
||
| USER_NOT_FOUND(HttpStatus.NOT_FOUND, "AUTH_401_4", "ํด๋น ์ด๋ฉ์ผ์ ํ์์ด ์กด์ฌํ์ง ์์ต๋๋ค.") | ||
| ; | ||
|
|
||
| private final HttpStatus httpStatus; | ||
| private final String code; | ||
| private final String message; | ||
| } |
29 changes: 29 additions & 0 deletions
29
src/main/java/com/whereyouad/WhereYouAd/domains/user/persistence/entity/RefreshToken.java
ojy0903 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package com.whereyouad.WhereYouAd.domains.user.persistence.entity; | ||
|
|
||
| import jakarta.persistence.Entity; | ||
| import jakarta.persistence.Id; | ||
| import jakarta.persistence.Table; | ||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Getter; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Entity | ||
| @Table(name = "refresh_tokens") | ||
| @Getter | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public class RefreshToken { | ||
|
|
||
| @Id | ||
| private String keyId; //์ ์ ์ ์ด๋ฉ์ผ(Key) | ||
|
|
||
| private String value; //Refresh Token ๊ฐ(Value) | ||
|
|
||
| //ํ ํฐ ๊ฐฑ์ ๋ฉ์๋ | ||
| public RefreshToken updateValue(String token) { | ||
| this.value = token; | ||
| return this; | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
...com/whereyouad/WhereYouAd/domains/user/persistence/repository/RefreshTokenRepository.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package com.whereyouad.WhereYouAd.domains.user.persistence.repository; | ||
|
|
||
| import com.whereyouad.WhereYouAd.domains.user.persistence.entity.RefreshToken; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
| import org.springframework.data.jpa.repository.Query; | ||
| import org.springframework.data.repository.query.Param; | ||
|
|
||
| import java.util.Optional; | ||
|
|
||
| public interface RefreshTokenRepository extends JpaRepository<RefreshToken, String> { | ||
| @Query("select r from RefreshToken r where r.keyId = :keyId") | ||
| Optional<RefreshToken> findByKeyId(@Param("keyId") String keyId); | ||
| } |
64 changes: 64 additions & 0 deletions
64
src/main/java/com/whereyouad/WhereYouAd/domains/user/presentation/AuthController.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| package com.whereyouad.WhereYouAd.domains.user.presentation; | ||
|
|
||
| import com.whereyouad.WhereYouAd.domains.user.application.dto.request.LoginRequest; | ||
| import com.whereyouad.WhereYouAd.domains.user.domain.service.AuthService; | ||
| import com.whereyouad.WhereYouAd.domains.user.presentation.docs.AuthControllerDocs; | ||
| import com.whereyouad.WhereYouAd.global.response.DataResponse; | ||
| import com.whereyouad.WhereYouAd.global.security.jwt.dto.TokenResponse; | ||
| import lombok.RequiredArgsConstructor; | ||
| import org.springframework.http.HttpHeaders; | ||
| import org.springframework.http.ResponseCookie; | ||
| import org.springframework.http.ResponseEntity; | ||
| import org.springframework.web.bind.annotation.*; | ||
|
|
||
| @RestController | ||
| @RequestMapping("/api/auth") | ||
| @RequiredArgsConstructor | ||
| public class AuthController implements AuthControllerDocs { | ||
|
|
||
| private final AuthService authService; | ||
|
|
||
| @PostMapping("/login") | ||
| public ResponseEntity<DataResponse<TokenResponse>> login(@RequestBody LoginRequest request) { | ||
|
|
||
| TokenResponse tokenResponse = authService.login(request); | ||
|
|
||
| ResponseCookie httpOnlyCookie = ResponseCookie.from("refresh_token", tokenResponse.refreshToken()) | ||
| .httpOnly(true) | ||
| // .secure(true) //<-- HTTPS ์์๋ง ์ฟ ํค ์ ์กํ๋๋ก ์ค์ | ||
| .secure(false) //<-- Postman ํ ์คํธ ์ฉ์ด๋ฅผ ์ํด false | ||
| .path("/") | ||
| .maxAge(60 * 60 * 24 * 7) // 7์ผ | ||
| // .sameSite("None") //<-- ํฌ๋ก์ค ์ฌ์ดํธ ์ ์ก ์ ์ฑ , ํ๋ก ํธ์ ์ฐ๋์ ํด๋น ์ฝ๋ ํ์ฑํ | ||
| .sameSite("Strict") //<-- ๊ฐ๋ฐ or ํ ์คํธ or Postman ์ ์ํด ์์ Strict | ||
| .build(); | ||
|
|
||
| return ResponseEntity.ok() | ||
| .header(HttpHeaders.SET_COOKIE, httpOnlyCookie.toString()) //์์ฑํ RefreshToken ์ฟ ํค๋ฅผ ํค๋์ ์ค์ | ||
| .header(HttpHeaders.AUTHORIZATION, "Bearer " + tokenResponse.accessToken()) //AccessToken ์ Authorization ํค๋์๋ ์ถ๊ฐ(ํธ์์ฌํญ) | ||
| .body(DataResponse.from(tokenResponse)); | ||
| } | ||
|
|
||
| @PostMapping("/reissue") | ||
| public ResponseEntity<DataResponse<TokenResponse>> reIssue( | ||
| @CookieValue(name = "refresh_token") String refreshToken | ||
| ) | ||
| { | ||
| TokenResponse tokenResponse = authService.reIssue(refreshToken); | ||
|
|
||
| ResponseCookie httpOnlyCookie = ResponseCookie.from("refresh_token", tokenResponse.refreshToken()) | ||
| .httpOnly(true) | ||
| // .secure(true) | ||
| .secure(false) | ||
| .path("/") | ||
| .maxAge(60 * 60 * 24 * 7) // 7์ผ | ||
| // .sameSite("None") | ||
| .sameSite("Strict") | ||
| .build(); | ||
|
|
||
| return ResponseEntity.ok() | ||
| .header(HttpHeaders.SET_COOKIE, httpOnlyCookie.toString()) //์์ฑํ RefreshToken ์ฟ ํค๋ฅผ ํค๋์ ์ค์ | ||
| .header(HttpHeaders.AUTHORIZATION, "Bearer " + tokenResponse.accessToken()) //AccessToken ์ Authorization ํค๋์๋ ์ถ๊ฐ(ํธ์์ฌํญ) | ||
| .body(DataResponse.from(tokenResponse)); | ||
| } | ||
| } |
34 changes: 34 additions & 0 deletions
34
...ain/java/com/whereyouad/WhereYouAd/domains/user/presentation/docs/AuthControllerDocs.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| package com.whereyouad.WhereYouAd.domains.user.presentation.docs; | ||
|
|
||
| import com.whereyouad.WhereYouAd.domains.user.application.dto.request.LoginRequest; | ||
| import com.whereyouad.WhereYouAd.global.response.DataResponse; | ||
| import com.whereyouad.WhereYouAd.global.security.jwt.dto.TokenResponse; | ||
| import io.swagger.v3.oas.annotations.Operation; | ||
| import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
| import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
| import org.springframework.http.ResponseEntity; | ||
| import org.springframework.web.bind.annotation.CookieValue; | ||
| import org.springframework.web.bind.annotation.RequestBody; | ||
|
|
||
| public interface AuthControllerDocs { | ||
| @Operation( | ||
| summary = "๋ก๊ทธ์ธ API", | ||
| description = "์ด๋ฉ์ผ, ๋น๋ฐ๋ฒํธ๋ฅผ ์ ๋ ฅ๋ฐ์ ๋ก๊ทธ์ธ ์งํ, AccessToken ์ body ๋ก ๋ฐํ & RefreshToken ์ ์ฟ ํค๋ก ๋ฐํ" | ||
| ) | ||
| @ApiResponses({ | ||
| @ApiResponse(responseCode = "200", description = "์ฑ๊ณต"), | ||
| @ApiResponse(responseCode = "401_1", description = "์คํจ") | ||
| }) | ||
| public ResponseEntity<DataResponse<TokenResponse>> login(@RequestBody LoginRequest request); | ||
|
|
||
| @Operation( | ||
| summary = "AccessToken ์ฌ๋ฐ๊ธ API", | ||
| description = "AccessToken ๋ง๋ฃ ์ ์ฟ ํค์ ์๋ RefreshToken ์ ์ฌ์ฉํด AccessToken & RefreshToken ์ ์ฌ๋ฐ๊ธ" | ||
| ) | ||
| @ApiResponses({ | ||
| @ApiResponse(responseCode = "200", description = "์ฑ๊ณต"), | ||
| @ApiResponse(responseCode = "401_2", description = "์คํจ(RefreshToken ๋ง๋ฃ, ์ฌ๋ก๊ทธ์ธ ํ์)"), | ||
| @ApiResponse(responseCode = "401_3", description = "์คํจ(RefreshToken ์ณ์ง ์์ ๊ฐ)") | ||
| }) | ||
| public ResponseEntity<DataResponse<TokenResponse>> reIssue(@CookieValue(name = "refresh_token") String refreshToken); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 25 additions & 2 deletions
27
src/main/java/com/whereyouad/WhereYouAd/global/security/SecurityConfig.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.